Access master page radbutton from content page javascript

2 posts, 1 answers
  1. Vishnu
    Vishnu avatar
    1 posts
    Member since:
    Oct 2012

    Posted 16 Jun 2014 Link to this post


    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 controls.

  2. Answer
    Danail Vasilev
    Danail Vasilev avatar
    1502 posts

    Posted 18 Jun 2014 Link to this post

    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?

    Danail Vasilev

    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.

Back to Top