I have a simple UltraWebTab design that has worked for years. Any user-specific is stored in session by the parent page that contains the UltraWebTab and then fetched by the page on whatever Tab the user navigates to. Now I am redesigning the web site to go away from session variables. How can I get the user data from the parent page down to the child pages on each tab? I am using query string variables in place of session variables throughout the rest of my code.
Hello mdraganza,
You can send some data through the pages displayed in the UltraWebTab in java script. For example you can get an instance of element from the tab1 named textbox1 like this:
var tab1 = ultraTab.Tabs[1];
var target = tab1.findControl("Textbox1");
Then you can just assign to this text box some data from your parent page. For additional reference check the attached sample. In it if you type something in the textbox from the first tab it will be transferred in tab2 when on AfterSelectedTabChanged event.
If you need any additional assistance on this please do not hesitate to ask.
I am still following your case. Have you been able to resolve the issue?If you still have any concerns or questions I will be glad to help. If you need any additional assistance do not hesitate to ask.
I apolgize for not replying sooner. I"ve just recently got back to this and discovered 2 issues. First, the textbox is visible to the user and so might be confusing to them. Second and more important is that the textbox text is visible on the tab page, but is not available during the page load. In both the Page_Load event of the aspx.vb page and in my javascript function called by the onload event of the aspx page, the text of the textbox is empty. Apparently, the loading of the tab page finishes before the javascript function that sets the textbox in the parent page is called.
Hello selectdata,
Can you please provide me some more information about your approach in order for me to investigate ypur issue further.
I assume that you want to get the textbox on the pageload event where it is not loaded yet. However, in AfterSelectedTabChanged event which occurs later in the page life cycle, both textboxes will be loaded. What I can suggest is try getting the tabs on the serverside.
Some further reference may be found at:
http://ko.infragistics.com/community/forums/t/25161.aspx.
Feel free to contact me if you have any further questions regarding this matter.
I am still following your case. Have you been able to resolve your issue? If you have any additional questions regarding this matter do not hesitate to contact me.
I am glad that you have been able to resolve your issue and thank you for sharing your experience with the community.
Do not hesitate to contact me if you need any further support.
The problem was that LoadAllTargetUrls was set to False. Once I set that True I was able to pass data around without a problem. Unfortunately, setting LoadAllTargetUrls to True would require some design changes that I'm not sure I can make right now.
I figured out a much easier way to get the job done. I want to pass data from the parent form down to a child, so I simply update the TargetUrl of the page to which I'm sending data with a query string value. I should of thought of that originally.
Thanks for the help.