Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 2nd, 2010, 05:35 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
and added a WHERE to the query
Yes, that's what you need, and what I had in my example as well.

Quote:
So I want to turn all these Insert buttons into one. Is this possible? If yes, how do I do it?
There might be a way to do it (you could probably create a custom button and trigger custom command on the FormView contols). but you have to ask yourself the question: do I want to go this route. FormViews are great for many data scenarios where there's a one to one mapping between the FormView and a database table. However, as soon as you're getting in more advanced scenarios as yours, maybe handing coding your pages using controls directly in the page and LINQ to SQL in the Code Behind may be a much better alternative.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to MSSQL-- All about it Chrisman ASP.NET 3.5 Basics 3 May 17th, 2008 03:23 AM
Connecting to Oracle8i mcgarry101 Visual Basic 2005 Basics 0 February 13th, 2007 07:33 AM
Connecting to MYSQL from C / C++ ? oloeriubogdan Linux 1 December 15th, 2006 10:50 AM
connecting to a database nehalw VB.NET 0 January 5th, 2005 05:59 AM
Help connecting!!! tim33_909 SQL Server 2000 4 November 5th, 2003 01:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.