473,385 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ASP. Net Multiple form submit

We are having multiple submit buttons with form validation on a single form.
By default a button is selected and the elememts included in the form is
validated.
If we try to add 2 forms to an ASP.NET page, we get a error:
"A page can have only one server-side Form tag."
How can we handle this scenario where there are multiple submit button with
validations in 1.1.

Thanks in advance
May 20 '06 #1
5 2236
Add asp.net server side buttons. You can have multiples and handle the
action in the appropriate listener

Regards,
Tasos

May 20 '06 #2
All validators will fire on a submit. A submission of selective data fields
with validation is not possible. My query is like in ASP if a user clicks in
a form and enters only that form will be submitted. No validation to controls
in other form tag happens. How can I acheive this in ASP.net 1.1. I have
tried out with form visibility property, disabling client scripts on
pages(clienttarget=downlevel) etc many ways. Nothing is serving my purpose.
Thanks for your reply and pls help me out

"Tasos Vogiatzoglou" wrote:
Add asp.net server side buttons. You can have multiples and handle the
action in the appropriate listener

Regards,
Tasos

May 20 '06 #3
Oh, I hadn't understood your problem.

I'd faced a similar issue with a form, where the validation was
depending on the value of a specific field and I used clientside code
to disable the validators.

Would you be interested in such a solution ?

May 20 '06 #4

Hi Tasos,
I aslo tried out with client script validation.
I will give u details of my requirment.

I am having a contact us form and a search filed on the same page.
The search box is included in a usercontrol and I am validating it using
javascript validation[I am checking for the value of the field. If it is
blank or "Search" iteself fire an exception else redirect ot my search page].
Ok, now on the contact us form I am having many fields where I am making use
of .Net validation.

Now the issue is when we browse the page and hit enter key by default the
search validation is happening.

In ASP if we click in a form and press enter the corresponding form only be
validated. I require a similar work around for this.

Thanks in advance

"Tasos Vogiatzoglou" wrote:
Oh, I hadn't understood your problem.

I'd faced a similar issue with a form, where the validation was
depending on the value of a specific field and I used clientside code
to disable the validators.

Would you be interested in such a solution ?

May 20 '06 #5
What I would do (it does not seem to elegant) is, overriding the submit
button OnClick event to call a javascript to disable the client
validator. Something like

btnOfContact.Attributes["onClick"]="ValidatorEnable(getObject('vldRequired'),
false);"

Regards,
Tasos

May 20 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Marc | last post by:
Hello, I have a self - submitting form with multiple submits and I want to detect after the submit which button is pressed. Code example: <form name="example" method="post"...
2
by: Phillip Windell | last post by:
This is really an HTML question I think, but it probably won't take much effort to answer (unless I'm answering or course). The HTML is all ASP generated and the ASP generates exactly what I want...
2
by: Matt | last post by:
The ASP page has multiple buttons, and when the user clicks different buttons, it will submit the form data to different URLs. My first approach was to use BUTTON type, and triggers javascript...
5
by: ningjun.wang | last post by:
How can I submit a form to multiple web sites when user click the submit button? Something like the following: myform.action = url_of_server1; myform.submit(); myform.action = url_of_server2;...
2
by: areef.islam | last post by:
Hi, I am kinda new to javascript and I am having this problem with selecting multiple options from a select tag. Hope someone can help me out here. here is my code...
5
by: c676228 | last post by:
Hi everyone, my colleagues are thinking about have three insurance plans on one asp page: I simplify the plan as follow: text box:number of people plan1 plan2 plan3
2
by: aris1234 | last post by:
Hi All... for validation one form i know the code, but if multiple form im confused my case : I have multiple form and submit in my html code, this is sample html : <form> <select>
43
by: bonneylake | last post by:
Hey Everyone, Well this is my first time asking a question on here so please forgive me if i post my question in the wrong section. What i am trying to do is upload multiple files like gmail...
25
by: bonneylake | last post by:
Hey Everyone, Well i am not sure if my question needs to be here or in coldfusion. If i have my question is in the wrong section i am sorry in advance an will move it to the correct section. ...
6
by: phpnewbie26 | last post by:
My current form has one multiple select drop down menu as well as few other drop down menus that are single select. Originally I had it so that the multiple select menu was first, but this created...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.