How to acess Controls of Master page in Content page in asp.net 2005 using javascript

Last post 05-07-2007 5:20 AM by Amanda Wang - MSFT. 1 replies.

Sort Posts:

  • How to acess Controls of Master page in Content page in asp.net 2005 using javascript

    05-03-2007, 11:21 AM
    • Member
      point Member
    • ramachandral
    • Member since 05-03-2007, 3:14 PM
    • Posts 1
     

    Hi All,

      I am developing a project to in my company i am facing few problems using asp.net 2005 they are listed below:

      1. how to acess a control of one content page in another content page as in 2003 we can acessing by the following script like window.opener.document.getelementbyID('');   but i am not able to acess in content page.

    2. Is there any way so that once the Popup Window is closed i need to executed only specified methods in parent page. If i use window.parent.reload it will consider a new page and all the controls are reloaded and all the things enterd will be lost.

    3.How to acess Controls of Master page in Content page in asp.net 2005 using   javascript

      Please do guide me regarding this issue that will be help full to me

    Thanks,

    Ramachandra

  • Re: How to acess Controls of Master page in Content page in asp.net 2005 using javascript

    05-07-2007, 5:20 AM
    Answer

    Hi Ramachandra,

    if you want to access the control of one content page, you could not use the id that you set in the properities dialog, you shoud run your page and look up the id in the view source,

    for example, In one content page, I set a TextBox's id is TextBox1, if I want to access it use javascript language like this: document.getelementbyID(''ctl00_ContentPlaceHolder1_TextBox1);  

    Amanda Wang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (2 items)