This project is read-only.

Displaying error messages

Aug 4, 2009 at 9:40 AM


I have the following situation on a Login page :

1. When the user enters Username + Password, if either of them is empty then show a message near the textbox.

2. After the postback, if the user cannot be authenticated I want to show a message above the textboxes that sais : "Incorrect Login" .


Now , My problem is with the last message. If I put a ValidationSummary at the top of the textboxes, then the messages get displayed twice (near the textbox and above them).

How can I resolve this issue ?