How to handle error in multiview

I have a multiview with 5 views. User enters name, phone number, address, etc.
I call 5 stored procs to save each section.
I have the "save" method wrapped in a try-catch and I roll back using Transaction in code.

Now, if an erorr occurs in any of the steps, i catch it and display a generic msg that an error has occured but user doesnt know what step has raised the error...i only display a generic msg to the user.

How can I tell the user which step has an invalid data? for example, i have text area that should only hold 1000 chars. I thought i had fixed this but user still got an error...

I have requiredfieldvalidators and user can't go to next step if the corresponding field is not met the right criteria but how else can I tell the user which step has caused the error?
LVL 8
CamilliaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dale BurrellDirectorCommented:
If you fully validate every field, and don't allow the user to move to the next step until the data is validated then problem solved.
0
CamilliaAuthor Commented:
even validate the length of each field? for example, name is 250 characters. What if the user enters 300 chars? how do I validate that?
0
Dale BurrellDirectorCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CamilliaAuthor Commented:
you know what, I didnt know i can use regular expressions to check for field length. I knew it actually but not as data valididation as far as the length of the fields go. Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.