-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Roopesh_finally_serious
Message 2 in Discussion

Hi Sreejith,
 
In the example you have given, all the three ID's are same. 
If my guess is right, you want to get the runtime ID, use 
"<controlName>.ClientId".
 
Best regards, 
 
~Roopesh Tayaloor
--------------------------------------------------------------------------------------------------------
I liked Success, and I liked path to success more than success itself 
 
On 12/28/06, sreejith77 <[EMAIL PROTECTED]> wrote:

 




New Message on BDOTNET




Server Control Id and Name from Script






Reply





 

Reply to Sender   
Recommend 
Message 1 in Discussion 





From: 
sreejith77 


I have a doubt. I placed a web server Button with in the Content Region of a 
Master page. i gave the Button ID as "Button1". But at Run time when i access 
the Button from Javascript thru as 

alert(
document.getElementById('ctl00$ContentPlaceHolder1$Button3').value);

i am getting object not defined error. 

I checked the view source of the web page. then i saw that my button id and 
name changed to 


ctl00$ContentPlaceHolder1$Button3 and ctl00$ContentPlaceHolder1$Button3.

Now how i can access my Button from script or how will get the new(changed ) 
name and id from my script

Sreejith

View other groups in this category. 









To stop getting this e-mail, or change how often it arrives, go to your 
E-mail Settings. 

Need help? If you've forgotten your password, please go to 
Passport Member Services. 
For other questions or feedback, go to our 
Contact Us page. 

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list. 

Remove my e-mail address from BDOTNET.
 





-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/Bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to