title: Access content page control from master page using javascript
body: <p>I want to access the content page Ajax combobox control in the master page and that too by using Javascript.</p>
  
  <p>I have been trying the same by using the contentpageholder of the content page, but also one of the problem I get is there are around 10 content pages, so when some other page like Page 1 is opened , the code show object reference exception as contentplaceholder is not matched.</p>
  
  <p>How to get that which content page is opened up?
  Also I am not able to get the code working to get the maincontentplaceholder id in master page.</p>
  
  <p>What I have done till now:</p>
  
  <pre><code>function accessControlContentPage() {
  var txtCont = document.getElementById("Page.Master.FindControl('ContentPlaceHolder1').FindControl('txtContent')").value;
  var text=txtCont;
  }
  </code></pre>
  
  <p>But this is not working.
  Any help with the same?</p>