Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
Access Content of previous UltraWebTab
posted

Hi,

I have three UltraWebTabs and for each tab the content is loaded through targeturl like

CurrentTabL.ContentPane.TargetUrl = "MyGrid.aspx" //MyGrid.aspx  > Have one Ultarwebgrid binded to data.

and during server side tab click event, i need to access the content of  previous tab's ultrawebgrid object.

Thanks
Ramesh.P

 

 

 

 

 

Parents
  • 45049
    Verified Answer
    posted

    Ramesh.P,

    You will need to store information in Session state (or possibly the Cache or Application state, if appropriate) in this setup.

    When using TargetUrl to point a tab in WebTab to a page, it is rendered as an IFRAME on the page.  An IFRAME is treated by ASP.NET as an entirely separate page on the server, so one IFRAME can't directly refer to another in server-side code.  Because of this, you need to use state management approaches such as Session state to access information from one WebTab tab to the other (or to the main webpage).

    Alternately, you can use the ContentTemplate or the ContentPane.UserControlUrl property, instead of ContentPane.TargetUrl.  When these are used, the content of the tabs are rendered as DIV objects instead of IFRAME objects, making the contents available between tabs.

Reply Children