Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
misc
exam.security
microsoft_update_catalog
msdn.annotations
msdn.drgui.discussion
msdn.duwamish
msdn.general
msdn.magazine
msdn.soaptoolkit
msdn.webservices
msdntraining
opsmgr.connectors
opsmgr.sp1
technet
technet.howtofeedback
technet.howtoneeds
technet.magazine
technet.technettalks
  
 
date: Sat, 20 May 2006 05:16:01 -0700,    group: microsoft.public.msdn.drgui.drguidotnet.discussion        back       


Multiple HTML forms on a ASP.Net page   
We require two forms on a page and one is normal form. Our customer is using 
"Enter" button to submit  forms,but while submitting using enter key only one 
form is submitted[validated].How can we handle both these forms.
date: Sat, 20 May 2006 05:16:01 -0700   author:   jinukosh

Re: Multiple HTML forms on a ASP.Net page   
"jinukosh"  wrote in message 
news:3008026F-9F29-477D-8501-03580CF01907@microsoft.com...
> We require two forms on a page and one is normal form. Our customer is 
> using
> "Enter" button to submit  forms,but while submitting using enter key only 
> one
> form is submitted[validated].How can we handle both these forms.

Multiple forms are independent by default, so that for example you can have 
a login (existing users) form with a signup (new users) form beneath.  But 
you can call the second form's submit method from the first form's onsubmit 
event handler.
date: Mon, 5 Jun 2006 08:59:43 -0500   author:   Ben Voigt am

Re: Multiple HTML forms on a ASP.Net page   
I think u didnt get me correct . Pls follow this URL


http://www.wipro.com/webforms/download_form.aspx?ReturnUrl=/datadocs/analystreports/Butler_Group_Technology_Audit_2005.pdf

 

 

There are 3 different submit buttons

1. Search
2. Login

3. For download

 

Now after the page has loaded just hit the enter key. The download form gets 
validated.

Now you enter some values into the Email ID field [in the user login box] 
and press enter[not mouse click]. Still the download form is getting 
validated.

 

 

Ok Now how can I over come the situation.

If I have entered some data into the login box only that form is to be 
validated

Similarly if I have entered some value into download  form that form should 
be validated.

 

I think, I am more clear this time.

 

 Thank you in advance for the support providing 



"Ben Voigt" wrote:

> "jinukosh"  wrote in message 
> news:3008026F-9F29-477D-8501-03580CF01907@microsoft.com...
> > We require two forms on a page and one is normal form. Our customer is 
> > using
> > "Enter" button to submit  forms,but while submitting using enter key only 
> > one
> > form is submitted[validated].How can we handle both these forms.
> 
> Multiple forms are independent by default, so that for example you can have 
> a login (existing users) form with a signup (new users) form beneath.  But 
> you can call the second form's submit method from the first form's onsubmit 
> event handler. 
> 
> 
>
date: Mon, 5 Jun 2006 21:46:01 -0700   author:   jinukosh

Re: Multiple HTML forms on a ASP.Net page   
"jinukosh"  wrote in message 
news:4BD0FB8F-5EA9-4955-A07F-D6F3BD5DF784@microsoft.com...
>I think u didnt get me correct . Pls follow this URL

It appears that there is only one form on that page, spanning the entire 
contents of the body element.

You will need two forms, like

<form method=post action=url1 id=Form1>
    <input ...><input ...>
</form>
<form method=post action=url2 id=Form2>
    <input ...><input ...>
    <input ...><input ...>
    <input ...><input ...>
    <input ...><input ...>
</form>

Then each of the two forms has its own ID and can be validated and submitted 
separately.  The form submitted depends on which button is clicked (or which 
form has the focus when the ENTER key is pressed), not where data is filled 
in.  The second form will always have data filled in for the drop-down 
lists.


>
>
> http://www.wipro.com/webforms/download_form.aspx?ReturnUrl=/datadocs/analystreports/Butler_Group_Technology_Audit_2005.pdf
>
>
>
>
>
> There are 3 different submit buttons
>
> 1. Search
> 2. Login
>
> 3. For download
>
>
>
> Now after the page has loaded just hit the enter key. The download form 
> gets
> validated.
>
> Now you enter some values into the Email ID field [in the user login box]
> and press enter[not mouse click]. Still the download form is getting
> validated.
>
>
>
>
>
> Ok Now how can I over come the situation.
>
> If I have entered some data into the login box only that form is to be
> validated
>
> Similarly if I have entered some value into download  form that form 
> should
> be validated.
>
>
>
> I think, I am more clear this time.
>
>
>
> Thank you in advance for the support providing
>
>
>
> "Ben Voigt" wrote:
>
>> "jinukosh"  wrote in message
>> news:3008026F-9F29-477D-8501-03580CF01907@microsoft.com...
>> > We require two forms on a page and one is normal form. Our customer is
>> > using
>> > "Enter" button to submit  forms,but while submitting using enter key 
>> > only
>> > one
>> > form is submitted[validated].How can we handle both these forms.
>>
>> Multiple forms are independent by default, so that for example you can 
>> have
>> a login (existing users) form with a signup (new users) form beneath. 
>> But
>> you can call the second form's submit method from the first form's 
>> onsubmit
>> event handler.
>>
>>
>>
date: Tue, 6 Jun 2006 12:40:58 -0500   author:   Ben Voigt am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us