Web Object objects NOT Appearing in aspx.cs

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

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


Date: Mon, 27 Sep 2004 11:27:02 -0700

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

  • Re: Web Object objects NOT Appearing in aspx.cs
    ... solve puzzles for a living ... > I need to add a method to the "onload" event of the tag. ... "bodyComments" is not recognizable in the web page's aspx.cs ... > appears if I close and relaunch VS.Net). ...
    (microsoft.public.dotnet.framework.aspnet)
  • Custom Webcontrols, VS EDI support and intellisense?
    ... But how on earth do I add xsd schemas for intellisense etc? ... I have compiled an xsd file using the generator from BlueVisionSoftWare ... I have a tag for my own controls called eg "projweb" ... Highlighting the line with the body tag ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: position layers in tables
    ... The language attribute is not a valid attribute for the body tag. ... You have indeed put this layer into a table cell, ... not be placed into table cells. ...
    (microsoft.public.frontpage.programming)
  • Re: Master Pages: Why is all of my content centered?
    ... labels I had CSS on weren't using height and width. ... hope Microsoft eventually changes the renders of labels to DIVs ... I did try removing everything from inside the body tag ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: position layers in tables
    ... "Murray" wrote: ... > The language attribute is not a valid attribute for the body tag. ... > nested layers) and the closer layer from their table cells, ...
    (microsoft.public.frontpage.programming)