Showing posts with label microsoft. Show all posts
Showing posts with label microsoft. Show all posts

Monday, March 26, 2012

Please Guide me

Hi,

I have just started learning ASP.NET. My background is in Cold Fusion, Perl, C++ and some JAVA.
I got this book on asp.net by microsoft. "ASP.NET programming with Visual Basic.NET STEP by STEP". The book is ok. I am trying to find some code samples which are good for beginners (i mean not very complex). Where can i find such samples which i can download and understand the actual usage of asp.net.

Please help me. I am lost. I have read half of the book, and still not very clear on some of the concepts. Is it easy to learn on my own or should taking some kind of training is a good idea.

Thanks.Check out:
ASPNet101.com
That should help a little to get you started, at least

also - remember that the basic concept of ASP.Net is that it is Event Driven and Object Oriented - - it brings actual programming concepts (like Visual Basic, etc) to web programming.

Every Web form tag is considered an object - - each object has properties - - (and more)
To 'Do' something with any of these objects, it requires an event, like, a button would have a Click Event (among others) - - there is no submission of a form, per se, any more - - you can program a button to do anything you'd like.

First thing I'd narrow in on, other than the basic concept of ASP.Net, is the Web Controls (Server Controls) that ASP.Net has built in (button, textbox, etc) - - - much of the real power comes from there - -
Next, I'd check out ADO.Net - - which is what ASP.Net uses for 'talking' to Databases (just about any flavor db that you need).....

please help

I have installed "MIcrosoft Visual studio.net 2003" on XP
platform,used it for a month but now I'm facing the
following problems:
1. my system shuts down whem i m using MSDN or any other .net framework
utilities like .net command prompt etc.

2. The folder option(hide/view hidden files) in the TOOLS option has
also dissapeared.

3. The IIS server has stopped,and can't be restarted.

this common problem is also being faced by some of my friends, so
please any s/w specialist please help me to solve this problem.

please mail me at: ravinder_rawat1985@dotnet.itags.org.yahoo.co.in
ravinderrawat85@dotnet.itags.org.gmail.comTry to write a more descriptive subject.

Don't expect replies to be sent to your mailbox. The newsgroup is a
place for discussion, not a notice board.

It sounds more like a virus than a problem with Visual Studio,
especially as it seems to be spreading among your friends. Do you have
any virus protection?

ravinderrawat85@.gmail.com wrote:

Quote:

Originally Posted by

I have installed "MIcrosoft Visual studio.net 2003" on XP
platform,used it for a month but now I'm facing the
following problems:
1. my system shuts down whem i m using MSDN or any other .net framework
utilities like .net command prompt etc.
>
2. The folder option(hide/view hidden files) in the TOOLS option has
also dissapeared.
>
3. The IIS server has stopped,and can't be restarted.
>
this common problem is also being faced by some of my friends, so
please any s/w specialist please help me to solve this problem.
>
please mail me at: ravinder_rawat1985@.yahoo.co.in
ravinderrawat85@.gmail.com
>

please help

I have installed "MIcrosoft Visual studio.net 2003" on XP
platform,used it for a month but now I'm facing the
following problems:
1. my system shuts down whem i m using MSDN or any other .net framework
utilities like .net command prompt etc.
2. The folder option(hide/view hidden files) in the TOOLS option has
also dissapeared.
3. The IIS server has stopped,and can't be restarted.
this common problem is also being faced by some of my friends, so
please any s/w specialist please help me to solve this problem.
please mail me at: ravinder_rawat1985@dotnet.itags.org.yahoo.co.in
ravinderrawat85@dotnet.itags.org.gmail.comTry to write a more descriptive subject.
Don't expect replies to be sent to your mailbox. The newsgroup is a
place for discussion, not a notice board.
It sounds more like a virus than a problem with Visual Studio,
especially as it seems to be spreading among your friends. Do you have
any virus protection?
ravinderrawat85@.gmail.com wrote:
> I have installed "MIcrosoft Visual studio.net 2003" on XP
> platform,used it for a month but now I'm facing the
> following problems:
> 1. my system shuts down whem i m using MSDN or any other .net framework
> utilities like .net command prompt etc.
> 2. The folder option(hide/view hidden files) in the TOOLS option has
> also dissapeared.
> 3. The IIS server has stopped,and can't be restarted.
> this common problem is also being faced by some of my friends, so
> please any s/w specialist please help me to solve this problem.
> please mail me at: ravinder_rawat1985@.yahoo.co.in
> ravinderrawat85@.gmail.com
>

Saturday, March 24, 2012

please help .. with Microsoft webcontrols ..

I downloaded the IE Web controls package and as instructed ran the Build file which does create the build folder with a subfolder called runtime but I do not see any Microsoft.Web.UI.WebControls.dll being created anywhere in this folder. What is going on ?Open up your build.bat with notepad and make sure the path to
csc.exe is valid. see below example.

c:\windows\microsoft.net\framework\v1.1.4322\csc.exe

Also run build.bat from the DOS shell not the Run menu so you can see what is happening.
I downloaded the IE Web controls package

For the love of our lord Jesus Christ, why?

and as instructed ran the Build file which does create the build folder with a subfolder called runtime but I do not see any Microsoft.Web.UI.WebControls.dll being created anywhere in this folder. What is going on ?

Are you building through commandline, and when building, did you resolve the first 'error'? (THis might be entirely based on experience, but there is usually one error to resolve when you try to build it the first time
hey what do you have against the iewebcontrols... the tabstrip + multipage works ok. Do you know of any other tabbing control that's free that's better. It would make my life a lot easier.
Free? No.

Better? All of them.

The IE Web Controls are the equivalent of Windows Millennium. It works, but it really isn't that good. If I had been a little more dishonest, I could have given you my version of the same controls I wrote for my previous company... those controls are probably on sale somewhere right now. :(

Please Help how do I Microsoft.XMLHTTP in .net

I am using the following code to parse a .txt file from a remote server using asp

set xml1 = CreateObject("Microsoft.XMLHTTP")
xml1.Open "GET", strURL, False
xml1.send
strXmlContents = xml1.responseText

how do I do this in .aspx?with the HTTPWebRequest class. here :

http://rtfm.atrax.co.uk/infinitemonkeys/articles/asp.net/990h.asp
That looks really nice for an advanced programer but I am completly lost. Is that in c#?

<%@. import namespace="System.Net" %>
WebClient objClient = new WebClient();
private void Page_Load(Object o, EventArgs e){
WebClient objClient = new WebClient();
}

private void Page_Load(Object o, EventArgs e){
WebClient objClient = new WebClient();
Stream objStream = objClient.OpenRead("http://lycosa/default.asp");
}

Is this all I need? what do I save this as?
> Is this all I need?

not quite. this is the code you need, sure, but you need to fill in a few bits round it. I take it you're a raw novice then?
I think I got thst part

<%@. import namespace="System.IO" %>
<%@. Control Language="vb" debug="true" Codebehind="Live Lines.ascx.vb" %>
<HTML>
<HEAD>
<title>Messing around with ASP.NET in VB</title>
</HEAD>
<body>
<script language="VB" runat="server"
Public Sub Page_Load()
Dim fileName as String
fileName = "C:\schedule.txt"
Dim strmR as StreamReader = File.OpenText(fileName)
lblStart.Text = Server.HtmlEncode(strmR.ReadToEnd()).Replace(vbcrlf, "<br />")
strmR.Close()
End Sub

</script>
<asp:label runat="server" id="lblStart" font-name="verdana" />
</body>
</HTML
This seems to work for me. 2 questions

1. How can I change this fileName = "C:\schedule.txt" for non local files? Like this, fileName = "http://blah/schedule.txt" ?
2. My information is now displayed like this
1| 1|20030915|18:05|DALLAS |219| 37|
1| 1|20030915|18:05|NY GIANTS |220| 7|

How do I convert this to xml and display it if I know the name for each category?
Yes I am a super nooob
Anyone have a suggestion?
You're going to need to split the delimited file first at the linebreaks, then at the pipe characters (|), then you'll be able to loop through the resulting arrays and stick them in an XML document.

I'll scout around and see if there's a tutorial on it somewhere, but equally there may be a library for this task on this very site...

Wednesday, March 21, 2012

Please help me create a simple page

Today i was creating my first page in asp.net and the very soon i realized that
microsoft products were not trustworthy i created a simple web form
with two text boxes and two labels/one label but when i created the solution
(build solution) see what is the IE displaying me in second screen shot

designed a simple login form

http://img171.imageshack.us/img171/6276/form1ts2.jpg

this is what it gave me as an output no web tools being displayed only one label i cant see the text box or any submit button i have seen the html code thats generated and its fine

http://img105.imageshack.us/img105/65/iepageid3.jpg

I am using Visual studio 2002 version and IIS v 5.1 no antivirus is running and
default website has been granted permission

can anyone please please help me out :) thankstry recompiling your project and then refreshing IE after you do so.

If there is still no change, then I suggest you uninstall zone alarm.

I had an issue with VS 2003 where zone alarm broke asp.net
Disabling it did't fix my issue, but when I fully uninstalled it, asp.net was working again.
thanks 4 the help buddy
no success now i need to reinstall zone alarm any more ideas do you think
i need to reinstall visual studio all over again because all other .aspx files i downloaded from net are running fine on IIS so IIS is problem free

ok its 1:09 night and i need a nap when i wake up I hope some good
person will surely help me out thanks

ASP.net took away this night :cry:
Well, the problem could be anything!!

Check in the HTML part that the <form> tag is present. Or check the visibility properties of the non-rendered controls.

Or just upload the project!!
you may also want to look into upgrading to using the 2.0 framework.

You can get a Visual Studio Web Developer Express for free here
http://msdn.microsoft.com/vstudio/express/vwd/

and this is very very similar to ASP.NET in VS 2002, except they improved a LOT of the things that were problems in the previous versions..

Visual Studio .NET 2002 was almost more of a beta for .NET than a full on programming language, most people moved quickly to 1.1 (2003) when that came out, and then to 2.0 (2005)

The fact that Microsoft gives you the express tools for free, makes it easier to upgrade to the newer version, because you don't have to shell out money for a good IDE.
thanks guys i think i need to reinstall the asp.net now but the problem with 2005 express version is that there is no

sqlconnection and oledbconnection object tool in the data tab of the toolbox
so i was not using it :wave:
http://msdn2.microsoft.com/en-us/library/k6h9cz8h(VS.80).aspx

Run the aspnet_regiis tool. Your files don't seem to have 'registered' properly.

aspnet_regiis /i

Friday, March 16, 2012

Please help me, and close the darn form!

Hi,
I've been here before and i'm still stuck with the same problem. I just can't close the stupid form.
I'm using microsoft's browser control on my aplication. I can open a new form when i click any link. That works great.

The BIG problem is when the javascript:window.close() is called from any page. The browser control closes, but i get stuck with the form it was on. I just can't close it.

Please help me. I've been to all kind of forums and still haven't found a solution.

Thanks.I think it has something to do with this bug. It looks like the WindowClosing event isn't beeing fired.

Can someone translate this into VB.Net.

http://www.codeproject.com/buglist/iefix.asp

Thanks.
I've never used the WebBrowser control, so I can't help there.

However, here is an onlineC# to VB.NET converter. It will convert the code provided in the article you referenced.

Hope this helps.
I got it. Thanks for your post "SomeNewKid2", but i didn't use that code. To confusing.

I was trying to use the windowclosing event and it didn't work. I found out that it work with the leave handler.
Like this:


Private Sub AxWebBrowser1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxWebBrowser1.Leave
Me.Close()
End Sub

This closes the stupid form also.
Stay well.

Please help on this annoying error

whenever I open a project or create a project, it give a error messege like
"microsoft development environment has encountered a problem and needs to close. we are sorry for the inconvenience." it asks me "send error report" or "don't send". when I click "don't send", it is closed. However, it opens single file. I reinstall VS.net alreday and there is no help.
PLEASE HELP!!!Hi,

The following article may be of use to you.

http://weblogs.asp.net/cflaat/archive/2003/07/24/51598.aspx

hope it helps.