ASP.Net Code Not Firing

  • Thread starter Thread starter MDW
  • Start date Start date
M

MDW

I just enabled IIS on my computer but apparently my configuration isn't quite
right. I have the following code below in a "test.aspx" file, but when I
bring it up in my browser, I get a blank page.

I've already granted the "ASPNET" user Admin rights on this computer and
used that as the default account for anonymous access. I'm probably missing
something basic but I can't for the life of me figure out.

Here's the code that doesn't seem to be firing:

<% @Page Language="VB" Debug="True" %>

<html>

<head>

<title>ASP.Net Test Site</title>

</head>

<body>

<%


Response.Write("<p>Test</p>")


%>

</body>

</html>
 
re:
!> I just enabled IIS on my computer but apparently my configuration isn't quite right.

Which OS are you running ?

re:
<body>
<%
Response.Write("<p>Test</p>")
%>
</body>

That is ASP code, not ASP.NET code.

Try something like this :
<body>
<form id="test" runat="server">
<div>
<asp:label id="name" runat="server" />Label Test<br/>
</div>
</form>
</body>

That will tell you if ASP.NET code is being processed.
If it is being processed, a label with the text "Label Test" will be displayed.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 
re:
!> Its not just IIS, you also need ASP setup on this machine.

I'm well aware of that, but the OS type is needed
in order to be able to recommend courses of action.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 
Back
Top