Dear Sir,
i am looking for save multiple forms details with one single button click event using asp.net and mysql ...if you have any solutions please forward it to me
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Feb 6, 2014, 11:04 PM EST
Make the button type as input NOT submit.
On the client event of the button, submit the forms using jquery.
$('.but').on('click', function(event) {
event.preventDefault();
$('.form1').submit();
$('.form2').submit();
$('.form3').submit();
});
In each forms submit event,
$('.formX').submit(function(event) {
event.preventDefault();
// Call to save the data.
});