PC Review


Reply
Thread Tools Rate Thread

ASP.net pages

 
 
=?Utf-8?B?YmlyZG1hbg==?=
Guest
Posts: n/a
 
      10th Jul 2004
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>
 
Reply With Quote
 
 
 
 
Jim Cheshire
Guest
Posts: n/a
 
      10th Jul 2004
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.




 
Reply With Quote
 
=?Utf-8?B?YmlyZG1hbg==?=
Guest
Posts: n/a
 
      10th Jul 2004
Jim: You were right on. I lucked out and got it fixed just prior to reading your note. I tried to run it in Visual Studio which was smart enough to tell me ASP.net was not tied into the server. It explained to use the command utility you mentioned. Things are looking much better now.

"Jim Cheshire" wrote:

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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of pages in worksheet doesn't match Print Preview pages delru Microsoft Excel Misc 2 10th May 2010 10:10 PM
Word adds blank pages between flow chart pages Kathy Microsoft Word Document Management 1 21st May 2009 05:06 PM
Running aspx pages on 1&1, signed library and master pages Carl Gilbert Microsoft ASP .NET 1 8th Jul 2005 07:58 PM
Print selective pages - only if the pages's Rows.Hidden = False" Marie J-son Microsoft Excel Programming 1 14th Dec 2004 03:47 PM
Making more pages available for offline viewing [default is 3 pages deep] Joseph Murphy Windows XP Internet Explorer 2 6th Mar 2004 12:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:31 PM.