473,513 Members | 2,616 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asp:panel, Submit Button, Database

Hi,

Slight problem in asp.net. (c#)

I have a asp:panel page set up, with two different panels both of
which contain a form.
On the second page the user presses submit and the form details are
automatically entered into a SQL database.

Problem is, when the user presses the next button on the first panel,
the details of that form are inserted into a databse record. Then when
the submit button is pressed on the second page, that form is
submitted to a NEW database record!

q: how to I tell the button on the first panel, not to submit to the
database and just go to the next panel ?

Any help appriciated as always!

H
Nov 17 '05 #1
1 1693
Fist off asp.net can only have 1 form per page and am surprised it
doenst give you an error telling you so. As for your problem i dont
understand how your form is submitting on your "next" button. Make
sure its not a type=submit button of course. Posting your code would
help.

Mike
ha************@hotmail.com (Harry) wrote in message news:<1c*************************@posting.google.c om>...
Hi,

Slight problem in asp.net. (c#)

I have a asp:panel page set up, with two different panels both of
which contain a form.
On the second page the user presses submit and the form details are
automatically entered into a SQL database.

Problem is, when the user presses the next button on the first panel,
the details of that form are inserted into a databse record. Then when
the submit button is pressed on the second page, that form is
submitted to a NEW database record!

q: how to I tell the button on the first panel, not to submit to the
database and just go to the next panel ?

Any help appriciated as always!

H

Nov 17 '05 #2

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

Similar topics

3
1880
by: Harry | last post by:
Hi, Can anyone help. I have a asp.net page (c#), with two panels, both of which have asp:textboxes on. When I press the first button, the second panel shows fine. When I press the button in the second panel, it triggers the script to send the form details by email.
6
1532
by: sklett | last post by:
I'm curious... asp:Panel renderes a <div> tag, right? And you can have text in a div tag.... so why not have a Text property for the asp:panel control??
2
6005
by: Mark Rae | last post by:
Hi, Is there any way to use the asp:Panel Web control so that it is always created regardless of its Visible property? E.g. if I write the following: <asp:Panel ID=pnlEvent Runat=server Visible=False> ....controls </asp:Panel> the panel is not actually created. I'd like it to be created but be
1
5373
by: Gary Coutts | last post by:
Hi, I am trying to center an panel using the following: <asp:Panel id="pnltest" HorizontalAlign="Center" BackColor="white" Width="800" Runat="server"> <asp:Button id=btnTest Runat="server" Text="press"></asp:Button> </asp:Panel> When view in a browser the following happens
1
1254
by: CharlesA | last post by:
Hi folks, first off, I'm using Framwork 1.1 with ASP.net and C# I'm trying to do something quite basic and can't figure out why it won't behave without going into massive details I want a button on an .aspx page have either a 'save' caption and 'save' commandname or a 'close' caption and a 'close' commandname The caption necessity is...
0
2636
by: mahaq | last post by:
Hi Guys, I like to know if there is any better solution to this issue. I am a front end developer using CSS and asp.net technologies I have a .net page and I am using an external CSS file. After adding the following code What I see is that its fine on IE 6 & 7 but on firefox and netscape the 2 links given below shift to the center.
2
2357
by: Darren Carter | last post by:
Hi, I have mutliple asp:Panel controls on a single page, each with a default button defined (each default button resides within its respective asp:Panel). All validation controls and buttons within each panel also have separate ValidationGroups defined. When an asp:Textbox has focus in one of the Panels and I press the enter key, my...
2
2470
by: Nathan Sokalski | last post by:
I have an HTML table in which I am using ASP:Panel controls to group together <tr>'s so that I can more easily show/hide them (by setting the ASP:Panel's Visible property). This works fine, but Visual Studio .NET 2005's Design View always hides the <tr>'s regardless of whether the ASP:Panel's Visible property is set to True, False, or not set...
6
11243
by: phpmel | last post by:
Hi Guys, I have an asp panel,an associated drag panel extender, a label and an OK button that serves as a message popup. i would like this pop up to show up in the centre of the browser window when the page is run. can someone please help me My code is below. i am using master pages <asp:Panel ID="MessagePanel" runat="server"...
0
7270
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7178
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7397
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7125
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
4757
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3252
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.