Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET Panels for Multi-Section Form = NETSCAPE Problems

Status
Not open for further replies.

DSect

Programmer
Joined
Sep 3, 2001
Messages
191
Location
US
I was testing a simple form:

2 Panels
Each panel has a textbox, requiredfield validator and a button

On page load, panel 1 is visible, panel 2 is not visible.

Panel 1's textbox has required field validator
Clicking button on panel one makes Panel 1 not visible and Panel 2 visible

Here's the problem:
On NETSCAPE / OPERA / MOZILLA:
With Client Side validation turned OFF on the requiredfield validator, Panel 1 does not validate on button click, it simply shows panel 2. If I press panel 2's button, validation errors for Panel 1's textbox.

This is wacky?? If I'm doing all server-side validation, why doesn't the validation event fire on Panel 1's button click?

The page works as expected in IE, but that's only 75% of my user base.

How can I get ASP.NET to server-side validate the textbox of Panel 1 and not let it continue to Panel 2 until Panel 1's validation is complete..??

This has to be a common problem?

Thank you very much!!
 
Anyone have this problem?

I tried making the validation event fire and it still passes over it in Netscape.. The server-side just doesn't fire until the "whole page" has been rendered, regardless of the panels..
 
Ok - Here's the deal..

If you turn off client-side validation, in Mozilla browsers, the serverside validation didn't hit until the last panel was shown.

BUT

I simply added a Page.IsValid (before showing the next panel) into my stuff and it works fine. I didn't have to explictly do the Page.IsValid for it to work with IE, but I was probably doing it wrong by NOT checking IsValid on each "step" of the process.

Case closed. .NET .Newbieness in effect.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top