By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,950 Members | 1,035 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,950 IT Pros & Developers. It's quick & easy.

use of document.getelementbyid in content page

P: 1
Hiii,

I have one master page which is having one content page.
on the content page there are some controls such as button etc.

In javascript, I want to access that button using its id as
document.getelementbyId('<%=Button7,clientID').cli ck();

I know this will not work in master content page because the control id gets changed automatically by .net..

Now my ques is how to find out the actual id of my button.

It can be <%=Ctl00_MainContent_Button7.clientId%>

I am not able to find out the changed id of the control.
and the above id does not work...

Plz guide what to do??

ASAP...
Thanks in Advance
Feb 13 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.