I am new to ASP.NET and whenever I try to run my asp.net page, all I get is the code! E.g.
<%@ Page Language="vb" Debug="True" %>
<SCRIPT Runat="Server">
Sub Display_Output (Src As Object, Args As EventArgs)
If Not NameIn.Text = "" Then
GreetingOut.Text = "Hello, <b>" & NameIn.Text & "</b>. " _
& "Today is " & Format(DateString, "Long Date") & " " _
& "and the time is " & Format(TimeString, "Long Time") & ".<br/>" _
& "Check out our special prices on software products listed below:<br/>"
ProductsGrid.Visible = True
End If
End Sub
</SCRIPT>
If you installed IIS after you installed the .NET framework try running the
aspnet_regiis -i tool to set the correct ISAPI filters. Also you can try running that tool if you use IIS as your server in the first place.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Thanks for your help! I have done that but it keeps displaying asp.net codes rather the web page. I have windows xp pro and IIS 5.1 version. Is there any other thing I can try?
can you provide the url that's in your address of your browser when you surf to the page that you expect to be seeing? Also check the virtual folders in your IIS and if it's actually up and running. You can get into the manager by going to
Start, Run and type in inetmgr and press
enter.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Thanks, I did that and it displayed a "The page cannot be displayed" page
It did this through a URL? What are you using to get it to display just the ASP.NET codes?
Try the IP address of the system or the system name instead of "localhost". Set your Internet Explorer to ignore proxy address. Test a Hello World HTML file.
Allighato
Member
70 Points
14 Posts
URGENT HELP!!!
Mar 17, 2006 05:01 AM|LINK
Hi All,
I am new to ASP.NET and whenever I try to run my asp.net page, all I get is the code! E.g.
<%@ Page Language="vb" Debug="True" %> <SCRIPT Runat="Server"> Sub Display_Output (Src As Object, Args As EventArgs) If Not NameIn.Text = "" Then GreetingOut.Text = "Hello, <b>" & NameIn.Text & "</b>. " _ & "Today is " & Format(DateString, "Long Date") & " " _ & "and the time is " & Format(TimeString, "Long Time") & ".<br/>" _ & "Check out our special prices on software products listed below:<br/>" ProductsGrid.Visible = True End If End Sub </SCRIPT>XIII
All-Star
182690 Points
23458 Posts
ASPInsiders
Moderator
MVP
Re: URGENT HELP!!!
Mar 17, 2006 05:10 AM|LINK
Hi,
and welcome to the ASP.NET forums.
If you installed IIS after you installed the .NET framework try running the aspnet_regiis -i tool to set the correct ISAPI filters. Also you can try running that tool if you use IIS as your server in the first place.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Allighato
Member
70 Points
14 Posts
Re: URGENT HELP!!!
Mar 17, 2006 05:25 AM|LINK
jeff@zina.co...
All-Star
87677 Points
11637 Posts
Moderator
Re: URGENT HELP!!!
Mar 17, 2006 04:43 PM|LINK
Make sure you're opening this through a URL, such as http://localhost/mypage.aspx, and not by using File -> Open.
Jeff
Allighato
Member
70 Points
14 Posts
Re: URGENT HELP!!!
Mar 17, 2006 05:49 PM|LINK
XIII
All-Star
182690 Points
23458 Posts
ASPInsiders
Moderator
MVP
Re: URGENT HELP!!!
Mar 17, 2006 06:05 PM|LINK
Hi,
can you provide the url that's in your address of your browser when you surf to the page that you expect to be seeing? Also check the virtual folders in your IIS and if it's actually up and running. You can get into the manager by going to Start, Run and type in inetmgr and press enter.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Allighato
Member
70 Points
14 Posts
Re: URGENT HELP!!!
Mar 17, 2006 06:24 PM|LINK
Hi,
http://localhost/Display_Welcome.aspx. I ran inetmgr and IIS is running well. Thanks.
jeff@zina.co...
All-Star
87677 Points
11637 Posts
Moderator
Re: URGENT HELP!!!
Mar 17, 2006 06:44 PM|LINK
It did this through a URL? What are you using to get it to display just the ASP.NET codes?
Try the IP address of the system or the system name instead of "localhost". Set your Internet Explorer to ignore proxy address. Test a Hello World HTML file.
Jeff
Allighato
Member
70 Points
14 Posts
Re: URGENT HELP!!!
Mar 17, 2006 06:55 PM|LINK
Hi Thanks
I tried
<html>
<head> hello </head>
<html>
<body>
testing
</body>
and it displayed the html codes and tags on the browser. Do you think is it has anything to do with my browser setting? Thanks
</html>
jeff@zina.co...
All-Star
87677 Points
11637 Posts
Moderator
Re: URGENT HELP!!!
Mar 18, 2006 12:34 PM|LINK
How exactly are you loading this into your browser? Do you have IIS installed on the system?
Jeff