I have a MasterPage(TestMater.Master), in the master page i have created a toolbar.
The MasterPage will load a Content Page(TabNavigationHomePage.aspx) on clicking one of a menu in the application. In the contentPage(TabNavigationHomePage.aspx) , i have webtab, which will automatically load one of child page(LandingPageTab.aspx).
When this page is loaded, I could not able to get the Master Page details in this loaded page. Since I have defined the toolbar in master page, the click event in master page will need to call the event defined in the tabbed page. please help me on this.
Hello Agilan,
Thank you for posting in our forums!
Please provide a little more information so I am more clear on what you are trying to accomplish. Answering the following questions will help:
1. Are you trying to call client-side or server-side code in your LandingPageTab.aspx?
2. What details from your MasterPage do you need to access in LandingPageTab.aspx?
3. Which events are you referring to when you say "the click event in master page will need to call the event defined in the tabbed page"? Are you referring to client or server side events here?
Additionally, if you can provide some examples of your scenario, this will help me assist you better.
Looking forward to hearing from you.
Hi Michael,
Thanks for responding
I am trying to call the server side code in LandingPageTab.aspx
I have defined the toolbar(dynamically creating Imagebutton) in master page. I need to get the toolbar control in LandingPageTab. So that based on the page authentication roles, i can enable or disable button in toolbar(for which i have a server method). BuildtoolBar server method will build and control the enable/disable
The image button in toolbar - image button click in master page, need to call a server side method in LandingPageTab.aspx.
Hi Agilan,
Thank you for the information.
Please see Viktor's response in this forum thread:
http://es.infragistics.com/community/forums/p/83593/417656.aspx#417656
The thing to note are that this code can be used if your LandingTabPage is used as a UserControl (.ascx) in the tab's UserControlUrl property. If you are using the LandingPageTab as a content page (.aspx) as the tab's ContentUrl property, I would recommend either setting a global variable to check when the content page is loaded, as Viktor suggests or to redesign your LandingTabPage as a UserControl if possible.
If you have any further questions or concerns with this, please let me know. Please be aware that I will not be available on Monday due to a US holiday. If you need immediate assistance with this, please email support@infragistics.com.