View Full Version : ASP.NET control not display

06-22-2007, 01:40 PM

I'm new to ASP.NET, refer the tutorial at http://www.w3schools.com/aspnet/aspnet_controls.asp. And having problem invery beginning stage. Well, when I try to run the example given, I found that my control didn't work. I.e:

1.) Under ASP.NET - HTML Server Controls, when cut and paste the sample, the link not work

2.)ASP.NET - Web Server Controls and ASP.NET - Validation Server Controls, not button display.

Pls advise....................

06-22-2007, 02:16 PM
Did you read and follow the "what you need" (http://www.w3schools.com/aspnet/aspnet_install.asp) portion of that tutorial? Make sure you do that first.

Assuming you have your web server setup properly, did you save the page with a .aspx file extension? Are you trying to run the page from your ASP.NET web server? You must do these two things if you expect even the simplest of ASP.NET programs to function properly.

06-23-2007, 03:34 AM

Of course, I do follow, and I even try to display use the Request.ServerVariables("HTTP_USER_AGENT") to see if the framework is available, as below: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322). I'm using IIS, so should be compatible, I can display the simple .aspx file without include any server control, just plain text.

Do I need to do any special configuration in IIS? Pls advise....

06-24-2007, 05:18 PM
Are you sure you put your test page in the correct directory?

In your browser window, type http://localhost/

What shows up there?