|
|
 |
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8  | This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

June 19th, 2007, 06:43 PM
|
|
Authorized User
|
|
Join Date: Apr 2007
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Chapter 8 inserts 2 records...
...instead of 1. Where should I look for this problem?
thanks.
|

June 20th, 2007, 03:13 AM
|
 |
Wrox Author
Points: 33,563, Level: 80 |
|
|
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 10,231
Thanks: 7
Thanked 203 Times in 201 Posts
|
|
Hi there,
Are you using VB? If so, check if you have duplicate handlers. You can have an OnClick in the HTML registered for something like Button1_Click and at the same time have a method like:
Button1_Click (...) Handlers Button1.Click
If that's the case, the event handler is called twice, resulting in duplicate records.
If that doesn't help, can you post you code?
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
|

June 20th, 2007, 05:28 PM
|
|
Authorized User
|
|
Join Date: Apr 2007
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Here's the code. I just noticed that for each .cs file there is a corresponding VB file. I didn't notice them before and I think I would have.
Well I would post the code if I saw some way to attach it or do I have to paste it in the message?
|

June 21st, 2007, 02:09 AM
|
 |
Wrox Author
Points: 33,563, Level: 80 |
|
|
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 10,231
Thanks: 7
Thanked 203 Times in 201 Posts
|
|
Yeah, you can just paste it in the message. You can use the Code button on the toolbar (#) to format it as code. Be sure to add a line breaks here and there to avoid very wide pages that are hard to read....
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
|

May 26th, 2009, 07:56 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Posting Two records
I am having the same issue with the insert posting two records to the table. I am using VB and have looked for any code refering to a button click call and have found none. All the code is generated by Visual Studio 2005. Is there something else to look for and where should I search.
Thanks.
Neal
|

May 27th, 2009, 07:32 AM
|
 |
Wrox Author
Points: 33,563, Level: 80 |
|
|
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 10,231
Thanks: 7
Thanked 203 Times in 201 Posts
|
|
Can you post the relevant code? Difficult to say something useful without it....
Imar
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |