Two forms ?

A

Arsalan

I have 4 textbox which in turn has 4 required validator associated with
them.


I want to make two separate login section in one page, how do I do that ?
Problem is that the validator control fires the event when i press the
submit button, so.......how do I group 2 textbox in diff <form> tag in
ASP.NET, it seems that you can make one single <form> tag with runat=sever
attribute
 
R

Rune B

I want to make two separate login section in one page, how do I do that ?
Problem is that the validator control fires the event when i press the
submit button, so.......how do I group 2 textbox in diff <form> tag in
ASP.NET, it seems that you can make one single <form> tag with runat=sever
attribute

You can only have 1 form in asp.net pages.

Use the validationgroup="" attribute to - group - what is validated.
Combine it with the CausesValidation="false" on controls that should not
invoke a validation at all.

R-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,121
Latest member
LowellMcGu
Top