TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Samuel
NA
1
0
form postback and validation
Jun 15 2007 10:00 AM
Hi, I am new to .Net and come from Java. I have a form in a page. I tell the form to go to a second page in the Button object with postbackurl. Before, I make some validation using a CustomValidator. The method in the validator just sets the args.IsValid to false. In case of a bad validation, I am redirected to the second page, instead of staying at the same page, though the validation method is called. My code: Validation: public void myValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs args) { if (...) { args.IsValid = false; } } Button definition:
Any hint on what goes wrong? Thank you Samuel
Reply
Answers (
1
)
How to display data returned from MS Access?
HELP Please!!! Updating DataGrid!!!