birdman wrote:
> 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>
That page should work fine. Try opening a command prompt, changing into the
folder where the Framework is installed (i.e.
c:\windows\Microsoft.net\Framework\v1.1.4322) and run the following command:
aspnet_regiis -i
After you do that, try again.
--
Jim Cheshire
Jimco
http://www.jimcoaddins.com
================================
Author of Special Edition
Using Microsoft Office FrontPage 2003
5 Stars on Amazon and B&N
================================
The opinions expressed by me in the
newsgroups are my own opinions and
are in no way associated with my
employer or any other party. Jimco is
not associated in any way with any other
entity.