![]() |
|
#1
|
|||
|
|||
Server Button Control execute twiceHi,
I am new to ASP .NET, I am using visual studio 2005 and ASP .NET 2.0.When I do a simple practical i find a strange problem on server button control. I have a web form with a few text boxes and a submit button. When I click the submit button, the data in the text box will insert into database. but when I click the button I found that the same record is inserted twice. That means a single click on the button cause the button event execute twice. Any idea? Thanks in advance. Best Regards. |
|
#2
|
|||
|
|||
Re: Server Button Control execute twiceMaybe it is you who insert it twice, put some breakpoints and debug the program .
|
|
#3
|
|||
|
|||
Re: Server Button Control execute twiceThis has to do with the way the event model works in .NET.
For the long answer read this: (scroll to the section: Event Delegates in Web Forms Pages) //msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconWebFormsEventModel.asp |
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Group Round buttons (radio buttons) | toaster | FLTK Forum | 1 | 03-Jan-2006 06:57 |
| Microsoft SQL Server :: SQL Server message 241, state 1, severity 16 | lyuboe | MySQL / PHP Forum | 0 | 11-May-2005 04:31 |
| Help! Some basal questions about MFC | xutingnjupt | MS Visual C++ / MFC Forum | 1 | 05-Dec-2004 03:38 |
| How to set the control button in the pushed mode? | mithila | MS Visual C++ / MFC Forum | 1 | 27-Sep-2004 06:32 |
| · Windows 2003 Server Reseller Special: Unlimited Domains/2 GB Space/for $19.99 | contactsonia | Web Hosting Advertisements & Offers | 0 | 09-Jan-2004 05:46 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The