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
1140
WebTab.UserControlURL
posted

We are building a WebTabs.ascx that will host a WebTab control.  The WebTab control will be populated at runtime from configuration data pulled from a database.  I want to leverage the WebTab's EnableLoadOnDemand and the UserControlURL.     When I click on the tab, I would expect the control set in the tabs UserControlURL to launch.  So far, no problem.

But all the target ascxs need the caller to provide parameter data so they know what to go get.  What is the best way to get parameter data from WebTabs.ascx to the ascx that gets fired on the TabClick.  I had considered session cache, but a user may have multiple instances of this page up at once.  I would need a unique id that the instance of the WebTab.ascx shares with each of  the ascx's it launches.

 

  • 7566
    posted

    Hello centrellr,

    If you need further assistance with this matter do not hesitate to contact me.

    Sincerely,

    Georgi Sashev

    Developer Support Engineer

    Infragistics, Inc.

    http://ko.infragistics.com/support

  • 7566
    Suggested Answer
    posted

    Hello cantrellr,

     

    Thank you for posting in our community. According to your question Session/Application/ Cache are common resources so saving it there is not a good solution and making difference between the tabs will be more difficult. One way of doing this is to save all the information you need in the ViewState. Also depending on how do you expect it to work you can prefer having smaller ViewState and saving only unique GUID in the ViewState and in the Session you can save specific setting for every GUID.

     

    I hope this information is helpful for you.

    Looking forward hearing from you.

     

    Sincerely,

    Georgi Sashev

    Developer Support Engineer

    Infragistics, Inc.

    http://ko.infragistics.com/support