Hello. I'm very new to ASP.Net, and have recently begun learning about the validations controls. I've been able to properly use the validation controls to validate required fields, and email addresses. I had it show the error message next to the control it was validating.
I have a login page, and instead of having the validation messages show next to the user name or password, I'd like it show them in an Invalid Login stylized div that I have. Here is an example:
<% '''''''Only show messages div if Username or Password is invalid''''''' %>
<div class="messages">
<div id="message-error" class="message message-error">
<div class="image">
<img src="resources/images/icons/error.png" alt="Error" height="32" />
</div>
<div class="text">
<h6>Invalid Login</h6>
<span>
<%'''''''Show Username or Password invalid messages''''''' %>
</span>
</div>
</div>
</div>
Does anyone know who to accomplish this? Since it would have to refer to the Username and Password validations, I think it has to use a validation summary, but I couldn't that to work properly. Any ideas?
I have a login page, and instead of having the validation messages show next to the user name or password, I'd like it show them in an Invalid Login stylized div that I have. Here is an example:
<% '''''''Only show messages div if Username or Password is invalid''''''' %>
<div class="messages">
<div id="message-error" class="message message-error">
<div class="image">
<img src="resources/images/icons/error.png" alt="Error" height="32" />
</div>
<div class="text">
<h6>Invalid Login</h6>
<span>
<%'''''''Show Username or Password invalid messages''''''' %>
</span>
</div>
</div>
</div>
Does anyone know who to accomplish this? Since it would have to refer to the Username and Password validations, I think it has to use a validation summary, but I couldn't that to work properly. Any ideas?