P
Philip Poole
Hello everyone,
Please help with this as it is driving me up the wall and it is urgent i
finish this page, this is the first time I have used User Controls and I
think I must have completly misunderstood a basic point.
I have a number of user controls which are used to make up my page. One
control is a series of tabs which are created dynamically from a database.
When someone clicks on a tab, the page reloads and the tabs that was clciked
changes colour to signify it has been selected.
The tabs to be displayed are decided by integer I set by a property.
After the tabs has been created i then want to generate the rest of my page
which wil be dependent on the id of the selected tab.
At the moment I have in my template file (which contains all of the user
controls) a page load method, in the page load method i call the functions
to generate my page. However, this functions are dependent on the selected
tab in the user control and the user control fuctions are not generated
until after the page load of my template page. i.e
Template.Page_Load() {
generatePage(id) //but no id!!!!
}
SideTabs.Page_Load()
Whereas what I would like is
Template.PageLoad() {
//some function calls
SideTabs.PageLoad()
int id = SideTabs.SelectedTabId
GenerateContent(id)
}
Is this possible? Or how can I get this type of functionaility.
Please help
Philip
Please help with this as it is driving me up the wall and it is urgent i
finish this page, this is the first time I have used User Controls and I
think I must have completly misunderstood a basic point.
I have a number of user controls which are used to make up my page. One
control is a series of tabs which are created dynamically from a database.
When someone clicks on a tab, the page reloads and the tabs that was clciked
changes colour to signify it has been selected.
The tabs to be displayed are decided by integer I set by a property.
After the tabs has been created i then want to generate the rest of my page
which wil be dependent on the id of the selected tab.
At the moment I have in my template file (which contains all of the user
controls) a page load method, in the page load method i call the functions
to generate my page. However, this functions are dependent on the selected
tab in the user control and the user control fuctions are not generated
until after the page load of my template page. i.e
Template.Page_Load() {
generatePage(id) //but no id!!!!
}
SideTabs.Page_Load()
Whereas what I would like is
Template.PageLoad() {
//some function calls
SideTabs.PageLoad()
int id = SideTabs.SelectedTabId
GenerateContent(id)
}
Is this possible? Or how can I get this type of functionaility.
Please help
Philip