Re: Web Object objects NOT Appearing in aspx.cs
From: Kevin Spencer (kspencer_at_takempis.com)
Date: 09/27/04
- Next message: Craig: "Re: VS.NET not hitting asp.net breakpoints..."
- Previous message: gh0st54: "Re: how to disable post back if enter key is pressed on th form"
- In reply to: ASP Yaboh: "Web Object objects NOT Appearing in aspx.cs"
- Next in thread: ASP Yaboh: "Re: Web Object objects NOT Appearing in aspx.cs"
- Reply: ASP Yaboh: "Re: Web Object objects NOT Appearing in aspx.cs"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 27 Sep 2004 14:42:21 -0400
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: Craig: "Re: VS.NET not hitting asp.net breakpoints..."
- Previous message: gh0st54: "Re: how to disable post back if enter key is pressed on th form"
- In reply to: ASP Yaboh: "Web Object objects NOT Appearing in aspx.cs"
- Next in thread: ASP Yaboh: "Re: Web Object objects NOT Appearing in aspx.cs"
- Reply: ASP Yaboh: "Re: Web Object objects NOT Appearing in aspx.cs"
- Messages sorted by: [ date ] [ thread ]