"bg" <bg@hn> wrote in news:e7**************@TK2MSFTNGP15.phx.gbl:
I use some special jscript validation formulas. In these jscript
functions, how can i obtain buttons. I want enable-disable
buttons, change text... Because of changing id's of buttons, i
can not handle buttons.
Numan,
ASP.Net dynamically creates an ID for a control because multiple
instances of that control may exist on a page. For example, let's
say you have a user control (.ascx) with a button on it named
"btnNew". If you have a page (.aspx) with three instances of that
user control on it, ASP.Net will dynamically assign IDs to those
three buttons when it generates the HTML, something like
"_ctrl0_btnNew", "_ctrl1_btnNew", and "_ctrl2_btnNew".
You can get the dynamically generated control name in server-side
code by reading the control's ClientId property.
--
Hope this helps.
Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/