ASP.Net Code Not Firing

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>
 
J

Juan T. Llibre

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.
 
J

Juan T. Llibre

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top