pass value from master page to common page methods

Last post 12-07-2009 5:07 AM by maingi4. 1 replies.

Sort Posts:

  • pass value from master page to common page methods

    12-07-2009, 3:16 AM
    • Member
      2 point Member
    • walklonely
    • Member since 12-07-2009, 8:10 AM
    • Posts 2

    I have one problem when doing my website on shopping.

    I created tab menu in the master page.I decide to relize this function below:

    When i click the one item of menu content

    I want to get the clicked content  in the common page.


    Could you give some advices?

    thank you

  • Re: pass value from master page to common page methods

    12-07-2009, 5:07 AM
    Answer
    • Participant
      1,015 point Participant
    • maingi4
    • Member since 09-24-2009, 7:26 AM
    • Mumbai
    • Posts 209

    create a public property or a function in masterpage which get ur required data.

    On the child aspx source add the following tag:

    <%@ MasterType VirtualPath="~/MasterPageName.master" %>

    in the codebehind where u need this data simply say something like:

    strBlah = Me.Master.<Call property or function> ("Me" = "this" in c#)

    u r done.

    Hope this helps.
Page 1 of 1 (2 items)