S
shaileenpatel
Hi All,
I need some help. This is a bit detailed and hopefully I explain it
completely. Please let me know if you have any questions. I have
successfully written an application in which I have a single main page
(.aspx) and I switch User Controls(.ascx) on a panel control to
represent the different pages of the application. Now I am trying to
add an "Admin" User Control (.ascx) which contains a single drop-down
list with some items from the database in it ( the values are IDs) and
two constant items ("Select One" - value of -1 and "Add New" value of
0). The "Admin" user control also contains TabStrip and MultiPage
controls and would reference different User Controls (.ascx) as the
different pageviews/tabs. This "Admin" user control sas been
successfully implemented but the problem comes when changing selection
in the drop-down list box. This is the way I believe it should work
(please correct me if I am wrong)
- Change the selection in drop down listbox from "Select One" to an
item with a value
- A postback to the server where I take the ID selected and set it to
session variable
- Then the tab control reads the session variable and retrieves
information from the database based on ID in session and
displays it on the tab.
The problem is that the Tab User Controls loads before the parent
"Admin" user control and so the tab controls is reading the id that
selected on the previous trip not the current trip. For example,
initial ID selected is -1 and then tab control reads the id as null.
Then you selected ID of 2 , the tab control reads as -1. So the tab
control is one step behind. Is there any way to change the order in
which these controls are loaded or a manner in order to address this
issue?
Thanks in advance,
Shay
I need some help. This is a bit detailed and hopefully I explain it
completely. Please let me know if you have any questions. I have
successfully written an application in which I have a single main page
(.aspx) and I switch User Controls(.ascx) on a panel control to
represent the different pages of the application. Now I am trying to
add an "Admin" User Control (.ascx) which contains a single drop-down
list with some items from the database in it ( the values are IDs) and
two constant items ("Select One" - value of -1 and "Add New" value of
0). The "Admin" user control also contains TabStrip and MultiPage
controls and would reference different User Controls (.ascx) as the
different pageviews/tabs. This "Admin" user control sas been
successfully implemented but the problem comes when changing selection
in the drop-down list box. This is the way I believe it should work
(please correct me if I am wrong)
- Change the selection in drop down listbox from "Select One" to an
item with a value
- A postback to the server where I take the ID selected and set it to
session variable
- Then the tab control reads the session variable and retrieves
information from the database based on ID in session and
displays it on the tab.
The problem is that the Tab User Controls loads before the parent
"Admin" user control and so the tab controls is reading the id that
selected on the previous trip not the current trip. For example,
initial ID selected is -1 and then tab control reads the id as null.
Then you selected ID of 2 , the tab control reads as -1. So the tab
control is one step behind. Is there any way to change the order in
which these controls are loaded or a manner in order to address this
issue?
Thanks in advance,
Shay