This is a migrated thread and some comments may be shown as answers.

Access master page radbutton from content page javascript

1 Answer 171 Views
Button
This is a migrated thread and some comments may be shown as answers.
Vishnu
Top achievements
Rank 1
Vishnu asked on 16 Jun 2014, 07:12 AM
Hi,

I have a RadButton in the master page of my web application and I want to access it directly from JavaScript inside one of the content pages.

I tried with $('#<%=Master.FindControl("RadButton1").ClientID %>') as well as $find('<%=Master.FindControl("RadButton1").ClientID %>'); but both returned an error where as the first statement works well for asp.net controls.

Thanks,
Vishnu.

1 Answer, 1 is accepted

Sort by
0
Accepted
Danail Vasilev
Telerik team
answered on 18 Jun 2014, 09:27 AM
Hello Vishnu,

I have tried to reproduce the mentioned issue but to no avail - the button in the master page is properly referenced from the content page.

Could you please try to reproduce the issue with the attached VS example and then tell us what changes you have made, so that I can make an investigation locally?

Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Button
Asked by
Vishnu
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or