Runs html but not asp scripts

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Visual Studio is not working correctly. I'm trying run some very simple code to confirm that my Visual Studio installation is ok. I can see the html and even an asp command but I can't see any of the script results. I don't get any errors but and I have looked at the permission and it seems fine. Any ideas would be greatly appreciated.

here is the code I'm trying to run.

<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="simpletest.WebForm1" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML><HEAD runat ="server"><title>WebForm1</title><meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"><meta name="CODE_LANGUAGE" Content="C#"><meta name="vs_defaultClientScript" content="JavaScript"><meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"></HEAD><body MS_POSITIONING="GridLayout"><form id="Form1" method="post" runat="server">
I can see this so html is working
<script language="C#" runat="server">
void Page_Load()
{
Response.Write ("If the script is working I should see this too. />");
}
</script><br><asp:button id="Button1" runat="server" text="Button"/></form></body></HTML>
 
You may have to run
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe - i" to
register ASP.NET with IIS.

Glen Profeta said:
Visual Studio is not working correctly. I'm trying run some very simple
code to confirm that my Visual Studio installation is ok. I can see the
html and even an asp command but I can't see any of the script results. I
don't get any errors but and I have looked at the permission and it seems
fine. Any ideas would be greatly appreciated.
here is the code I'm trying to run.

<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="simpletest.WebForm1" %><!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML><HEAD runat
="server"><title>WebForm1</title><meta name="GENERATOR" Content="Microsoft
Visual Studio .NET 7.1"><meta name="CODE_LANGUAGE" Content="C#"><meta
name="vs_defaultClientScript" content="JavaScript"><meta
name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5"> said:
I can see this so html is working
<script language="C#" runat="server">
void Page_Load()
{
Response.Write ("If the script is working I should see this too. />");
}
</script><br><asp:button id="Button1" runat="server"
text="Button"/></form></body></HTML>
 
Back
Top