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.
|