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?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
Have you tried to do TrabStrip1.SelectedIndex in Page_PreRender?
Thanks
|
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.
|