Hi. First off, thank you for taking the time to read this/help me.
I've designed a website/system that use the latest telerik controls.
I have a page that contains a tabstrip and a multipage.
I dynamically populate the tabstrip and multipage via VB code from an SQL DB/Table.
I have many user control pages (.ascx) that are added to the multipage via code and the multipage's PageViewCreated event.
For this question's purpose, lets call each tab Tab1, Tab2, etc. and each user control page Tab1.ascx, Tab2.ascx, etc.
In each user control .ascx page, I have a page_load event that executes a global "TextFill()" function that finds all Label controls on the user control page and sets the .text, .font, etc. properties from an SQL database table. The function's argument is of type UserControl so is called with Me (i.e. TextFill(Me) ), this is how it knows what label controls to find, lookup and populate.
Hope this all makes sense so far.
This process works fine but NOT for the first visit to the web app (The first/default view of the tabstrip/multipage.).
I.e. the first time you go to my custom app, the tabstrip is dynamically populated and defaults to Tab1 selected with Tab1.ascx showing as the sub-content. The sub-content does not have the properties applied from the global TextFill() function.
If I click to Tab2, it now works. Tab2 sub-content has the labels all updated from the TextFill() function.
Then if I click back to Tab1, THAT one now works (the labels are all updated).
How can I make that TextFill() function in the user control page's Load event fire when the tabstrip/multipage is FIRST dynamically populated/viewed ?
I tried putting the TextFill() function in different events of the user control page (i.e. PreRender, etc.). but no luck.
If I could just get that Tab1.ascx to force update or load again after the first visit to the site.
Any ideas?
Again, I hope I explained all of this good enough.
Thank you very much.
I've designed a website/system that use the latest telerik controls.
I have a page that contains a tabstrip and a multipage.
I dynamically populate the tabstrip and multipage via VB code from an SQL DB/Table.
I have many user control pages (.ascx) that are added to the multipage via code and the multipage's PageViewCreated event.
For this question's purpose, lets call each tab Tab1, Tab2, etc. and each user control page Tab1.ascx, Tab2.ascx, etc.
In each user control .ascx page, I have a page_load event that executes a global "TextFill()" function that finds all Label controls on the user control page and sets the .text, .font, etc. properties from an SQL database table. The function's argument is of type UserControl so is called with Me (i.e. TextFill(Me) ), this is how it knows what label controls to find, lookup and populate.
Hope this all makes sense so far.
This process works fine but NOT for the first visit to the web app (The first/default view of the tabstrip/multipage.).
I.e. the first time you go to my custom app, the tabstrip is dynamically populated and defaults to Tab1 selected with Tab1.ascx showing as the sub-content. The sub-content does not have the properties applied from the global TextFill() function.
If I click to Tab2, it now works. Tab2 sub-content has the labels all updated from the TextFill() function.
Then if I click back to Tab1, THAT one now works (the labels are all updated).
How can I make that TextFill() function in the user control page's Load event fire when the tabstrip/multipage is FIRST dynamically populated/viewed ?
I tried putting the TextFill() function in different events of the user control page (i.e. PreRender, etc.). but no luck.
If I could just get that Tab1.ascx to force update or load again after the first visit to the site.
Any ideas?
Again, I hope I explained all of this good enough.
Thank you very much.