|
|
pinTab
Started by BeemerBiker at 05-10-2007 9:50 . Topic has 1 replies.
 
 
|
|
Sort Posts:
|
|
|
|
05-10-2007, 9:50
|
BeemerBiker

Joined on 04-19-2007
San Antonio, Texas
Posts 21
|
from server-side need to switch to a different tab
|
|
|
|
|
I got this working but I think it is a kluge and was wondering if there is a cleaner way.
Requirement: One tab has a grid and one column of the grid has a select button that forms the proper sql command to fetch data from that row that can be seen in the grid in the other tab.
I could not figure out how to to this using PinTab1 or _objPinTab1 or whatever. I did get it to work using this scheme:
The button callback stored the sql command into a session variable and set another session variable "CurrentDefault Tab" equal to the tab that I wanted selected. I then when to the page_load of _default.asp and looked for a non-null CurrrentDefaultTab and if it was defined I then issued:
PinTab1.SelectedIndex = Convert.ToInt32(Session["CurrentDefaultTab"].ToString());
This works but I think it is a hack. Surely there is a way in C# to select one tab while in another?
I put an image of the code segment here:
http://tinyurl.com/2g9kve
As shown, clicking on the button 3642 stores that info into the session variable and the callback then arranges for a refresh of the main page which then uses the session info to start the proper tab. There ought to be something in C# that can be written to avoid all this one would think.
|
|
|
|
|
Report
|
|
|
|
05-11-2007, 2:53
|
Pintexx Support
Joined on 08-30-2005
Posts 1.574
|
Re: from server-side need to switch to a different tab
|
|
|
|
|
Hi,
I'm sorry but I have no overview over your project and pages.
But if you are at server side and want to set a default tab then this seems not a bad solution for me.
Regards,
Hans-Peter
|
|
|
|
|
Report
|
|
|
|
|
|