Re: Web Object objects NOT Appearing in aspx.cs

From: ASP Yaboh (ASPYaboh_at_discussions.microsoft.com)
Date: 09/27/04


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



Relevant Pages

  • XML, XSL and images - links to images dont work
    ... my page references both files. ... when the HTML files are compiled, ... if i have an image referenced in an tag, the link won't display in the ... even though viewing the source xml document in IE ...
    (microsoft.public.inetsdk.html_authoring)
  • Re: Adding on to a formula across rows and columns
    ... I just need to go down the rows and, ignoring blank cells, ... I need to tag on an additional formula to an existing formula. ... the original formula contains relative references. ... I believe the 2 different original formulas I've shown here, ...
    (microsoft.public.excel.misc)
  • Re: Mysteries in EMX.DLLs code
    ... Attempting to infer anything about its ... I recommend you review one of the subversion tutorials to understand how ... I don't see an explicit tag in the repository ...
    (comp.os.os2.programmer.misc)
  • Re: [FAQ] Moderation and Posting to Talk.Origins
    ... It's the References: header though - replying to a tagged message means ... the original poster, I kill any replies. ... I want my own tag so I can killfile myself. ...
    (talk.origins)
  • Re: [PHP] Re: Browser could not get mp3 files from http site
    ... The bgsound tag is not in HTML 4 or XHTML 1 specifications, ... nor did I recommend it -- I only pointed out the ... the generic audio plugin that the browser has access to. ... about 30% are made by browsers that do not have the ...
    (php.general)