Welcome Guest Search | Active Topics | Sign In | Register

Forcing Tabstrip Selected Index Options
Chris
Posted: Monday, November 19, 2007 12:56:34 PM
Rank: Member
Groups: Member

Joined: 10/1/2007
Posts: 17
I have a tabstrip on my page, with validation on the first tab. I want to prevent someone from selecting the next tab if the validation = false.

I am using RegularExpressionValidator and doing a Page.Validate() on page load. I can trap that there is a validation error, but can't seem to force the tab back to the tab that has the error on it.

I have tried Tabstrip1.SelectedIndex = 0.

Any thoughts?
eo_support
Posted: Monday, November 19, 2007 1:58:16 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,089
Hi,

Have you tried to do TrabStrip1.SelectedIndex in Page_PreRender?

Thanks
Chris
Posted: Tuesday, November 20, 2007 9:48:36 AM
Rank: Member
Groups: Member

Joined: 10/1/2007
Posts: 17
Yep that worked, I moved my page validate to page pre-render and it works great.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.