Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form validation
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
01114419
Message ID:
01114952
Views:
14
>Have you looked into using a ValidationSummary control? If memory serves, you can put that wherever you want on the form.

Actually I solved the problem by adding attribute to the submit button in Page_load event.
this.btnSubmit.Attributes.Remove("onclick");//Remove previous one
this.btnSubmit.Attributes.Add("onclick","onSubmitClick();"); //Add my own
Then in onSubmitClick (JavaScript), if the page is not valid, I make it to scroll to the top.
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Reply
Map
View

Click here to load this message in the networking platform