B
birdman
I am having great difficulties just getting the "Welcome World" asp.net page to work. I am not sure whether it is IIS, .Net, or just my code. I have tried the code in the ASP.NET web matrix tool and it works. When I save the file to my web server root directory adn then try to open it with the browser I get and error message: " Line 2, Error - expected ')'". I must be missing something simple, but I no idea what. Other code I have copy also hasn't worked.
<%@ Page Language="C#" %>
<script runat="server">
void Page_Load(Object obj, EventArgs e)
{
lblMessage.Text="Welcome to ASP.NET!";
}
</script>
<html>
<body>
<ASP:label id="lblMessage" runat="server" />
</body>
</html>
<%@ Page Language="C#" %>
<script runat="server">
void Page_Load(Object obj, EventArgs e)
{
lblMessage.Text="Welcome to ASP.NET!";
}
</script>
<html>
<body>
<ASP:label id="lblMessage" runat="server" />
</body>
</html>