Getting and Setting properties of objects on MasterPage????

Last post 11-16-2006 5:28 AM by s_j_b. 3 replies.

Sort Posts:

  • Getting and Setting properties of objects on MasterPage????

    11-16-2006, 3:21 AM
    • Member
      194 point Member
    • s_j_b
    • Member since 06-27-2006, 8:37 AM
    • South Africa
    • Posts 84

    HI there, I just want to know if its possible to get an reference to an object on the MasterPage?

    On my MasterPage i've got images, and because of the structure of my folders, does the paths of the images change...

    Now I want to know if its possible to change the image SRC from the content page, so that I can control the images?

    Thanks

  • Re: Getting and Setting properties of objects on MasterPage????

    11-16-2006, 4:30 AM

    You can use the following code to access the controls in master page from content page behind code.

    FileUpload fileUpLoad0 = Page.Master.FindControl("FileUpload1") as FileUpload; 

    Wish this can help you. 

     

  • Re: Getting and Setting properties of objects on MasterPage????

    11-16-2006, 4:31 AM
    Answer
    Try to look into this link about master page. - http://msdn2.microsoft.com/en-us/library/xxwa0ff0.aspx
  • Re: Getting and Setting properties of objects on MasterPage????

    11-16-2006, 5:28 AM
    • Member
      194 point Member
    • s_j_b
    • Member since 06-27-2006, 8:37 AM
    • South Africa
    • Posts 84

    thanks...

    will do so....

Page 1 of 1 (4 items)