Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 October 2nd, 2007, 03:19 AM
Authorized User
 
Join Date: Aug 2007
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default Having Problems with my Insert Command - RESOLVED

Hi,

I have a page that takes a Customer Id as a querystring. This relates to a Customer Code.

On my Insert command, I want to insert an entry that has numerous values, but currently I have to manually type in the Customer Code to enter the data correctly to my database.

I use a gridview and a details box, and only when an item is selected in the gridview, the DetailsView appears along with my Insert, Edit and Delete buttons. This means I should be able to use DetailsView.CustomerCode(as it has the value in there that I want),

I was wondering how I would go about using the GridView.SelectedItem, or the DetailView values to grab the customercode out of it for my DetailsView insert command.
 
Old October 2nd, 2007, 09:59 AM
Authorized User
 
Join Date: Aug 2007
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Doesn't matter - sorted it






Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Command using a querystring Andrew.Berry ASP.NET 2.0 Basics 1 September 27th, 2007 09:26 AM
hi problem on bulk insert command karthikc85 SQL Server ASP 1 November 8th, 2006 04:22 AM
(Resolved) Select top10 problems jrogers SQL Language 1 April 12th, 2006 09:34 AM
Insert command rajanikrishna ASP.NET 1.0 and 1.1 Basics 0 April 3rd, 2006 08:47 AM
ASP Insert into command joshua_mccrea Classic ASP Databases 5 August 13th, 2003 10:35 PM





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