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

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,830
Latest member
HeleneMull

Latest Threads

Top