Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: access aspx controls in javascript


Message #1 by Christine Sun <Christine_Sun@c...> on Tue, 12 Feb 2002 10:48:22 -0800
Any aspx controls are server side so once they sent back to the server they
translated into
HTML code.

From this example I would say that you can refer to you control using
document.<formname>.radio1
<formname> this is something that server decide on it. It may look like
_ctl0 or may be differently.
But you can check it by yourself. Once your page is rendered you can view
source of your page
and then you could see the form names and actually all other HTML controls.

Hope that's what you are looking for.
Oleg.

-----Original Message-----
From: Christine Sun [mailto:Christine_Sun@c...]
Sent: February 12, 2002 1:48 PM
To: javascript
Subject: [javascript] access aspx controls in javascript


Hi,

Can anyone tell me how to access
aspx radibuttons in clientside javascript code?
e.g
<asp:radiobutton id=radio1 runat=server>

any input is greatly appreciated.

C Sun



  Return to Index