|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How do I access HTML controls from the code behind?I need to get a value out of a text area field. How do i reference this
field in my code behind? aaa wrote:
> I need to get a value out of a text area field. How do i reference Create a HTML control. Just add the runat="server" attribute and> this field in my code behind? reference the control by its id attribute, like any server control. Example: ASPX <input id="cancelButton" type="button" value="Cancel" name="cancelButton" runat="server"> Code-behind class protected System.Web.UI.HtmlControls.HtmlInputButton cancelButton; Cheers, that doesn't work because it now breaks my clientside javascript.
Show quoteHide quote "Joerg Jooss" <news-re***@joergjooss.de> wrote in message news:xn0e1777exckqe000@msnews.microsoft.com... > aaa wrote: > > > I need to get a value out of a text area field. How do i reference > > this field in my code behind? > > Create a HTML control. Just add the runat="server" attribute and > reference the control by its id attribute, like any server control. > > Example: > > ASPX > > <input id="cancelButton" type="button" value="Cancel" > name="cancelButton" runat="server"> > > Code-behind class > > protected System.Web.UI.HtmlControls.HtmlInputButton cancelButton; > > > Cheers, > > -- > http://www.joergjooss.de > mailto:news-re***@joergjooss.de OK, have the control as it is, and do the javascript on the server
side... unless it is not an confirm().... Hth, Karthick karthick wrote:
> OK, have the control as it is, and do the javascript on the server Your comments aren't really helpful. What is the problem?> side... unless it is not an confirm().... > > Hth, > Karthick Cheers, OK, have the control as it is, and do the javascript on the server
side... unless it is not an confirm().... Hth, Karthick
How Do I assign an ID to ListItem?
DataList ERROR URGENT Open New Window Server Side How do you populate the Dropdown in IE Web Controls? Creating a 3 State Rollover Button Developing .NET Custom Web Control for use in ASP & ASP.NET pages DataGrid Question - asp:Hyperlink Sorting problem in DataGrid how to calculate time Color Picker Control |
|||||||||||||||||||||||