This is a migrated thread and some comments may be shown as answers.

Return to particular tab on redirect

4 Answers 252 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 07 Jan 2010, 05:28 AM
Hi!

Got a page with multiple tabs on it and let's just say the user is on
second tab which is company users where they can go on to create
another user. When the user is created and they return back to the
main page, I'd like to by default select the second tab which is the
one they were on in the first place.

Got this scenario popping up all over and just not sure what is best
way of doing it? Had a look at FindTabByUrl but does not seem to
do it for me...

4 Answers, 1 is accepted

Sort by
0
Christopher Bishop
Top achievements
Rank 2
answered on 07 Jan 2010, 04:13 PM
Can't you just pass a query string back from the company page like
?backpage=companylist.aspx&tab=company
After save redirect back to the "backpage"

then when you load up your page that has all  the tabs go
if request("tab") <> "" then

radtabs.Tabs.FindTabByText(

request("tab") ).Selected = True
end if

not pretty but I think that is what you are getting at yes?

 

0
Joe
Top achievements
Rank 1
answered on 08 Jan 2010, 12:05 AM
Thanks Chris, but I was hoping there was a more elegant way of doing it...
0
Christopher Bishop
Top achievements
Rank 2
answered on 08 Jan 2010, 12:08 AM
Unless you are using ajax or setting a cookie/session I can't think of any other way to do it short of using a radwindow to do the edit.
0
Joe
Top achievements
Rank 1
answered on 10 Jan 2010, 11:45 PM
Thanks, will go with that then!
Tags
TabStrip
Asked by
Joe
Top achievements
Rank 1
Answers by
Christopher Bishop
Top achievements
Rank 2
Joe
Top achievements
Rank 1
Share this question
or