Re: Web Object objects NOT Appearing in aspx.cs
From: ASP Yaboh (ASPYaboh_at_discussions.microsoft.com)
Date: 09/27/04
- Next message: Gala Grant: "Re: How do I not display file extensions?"
- Previous message: Steve Caliendo: "Server IP address"
- In reply to: Kevin Spencer: "Re: Web Object objects NOT Appearing in aspx.cs"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 27 Sep 2004 13:11:02 -0700
Kevin,
Thank you that worked.
Are there any ASP.Net references that you could recommend? I'm new to
ASP.Net (but not C#), and I find my current resources lacking. Especially
when I use a MS example from their help (this <body> tag issue), and, correct
me if I am wrong, I see no mention on that help page of adding the
HTMLGenericControl to my aspx.cs page.
Thanks again for your time.
"Kevin Spencer" wrote:
> Did you declare the Control in your CodeBehind class?
>
> protected System.Web.UI.HtmlControls.HtmlGenericControl bodyComments;
>
> --
> HTH,
> Kevin Spencer
> ..Net Developer
> Microsoft MVP
> I get paid good money to
> solve puzzles for a living
>
> "ASP Yaboh" <ASPYaboh@discussions.microsoft.com> wrote in message
> news:5E507B8D-E44E-4453-BE38-95C7E1461B12@microsoft.com...
> > I need to add a method to the "onload" event of the <body> tag. The body
> tag
> > has been set to:
> >
> > <body id="bodyComments" runat=server>
> >
> > However, "bodyComments" is not recognizable in the web page's aspx.cs
> page.
> > (I have had similar problems with the <form> tag but found it eventually
> > appears if I close and relaunch VS.Net). I have relaunched VS this time
> but
> > no luck. What I am trying to do is shown in VS.Net help section on
> Javascript
> > so it "should" work?
> >
> > I am using VS.Net 2003, version 1.1.4322 SP1. This problem existed before
> > applying SP1.
> >
> > Thanks.
>
>
>
- Next message: Gala Grant: "Re: How do I not display file extensions?"
- Previous message: Steve Caliendo: "Server IP address"
- In reply to: Kevin Spencer: "Re: Web Object objects NOT Appearing in aspx.cs"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|