Microsoft
Software
Hardware
Network
Question : DataKey Parameter causes errors on page
I have a master GridView that, when selected, activates 2 further GridViews. One show the items related, the other shows the items still available to associate. I have a Delete query on the first, to remove the association, and an Insert on the second to associate an item. Think that makes sense.
I search MSDN for a solution to getting the DataKey so that I could insert 2 parameters into the association table.
The line I'm using runs, but the browser shows an error in the information bar that it's Done but with errors on the page. An unterminated string constant.
The line is:
sqlAdd.InsertParameters.Ad
d("categor
y_id",Grid
View3.Sele
ctedDataKe
y.Value.To
String());
I can't see why. Help appreciated.
Thanks
Craig
Answer : DataKey Parameter causes errors on page
Just list the columns to sort by in the order you want them sorted.
ORDER BY transac_id, t.idinvoice
Random Solutions
Sending e-mails from different acounts in Outlook using exchange
DT_WSTR dropping value before decimal point in SSIS
MBAM and Superantispyware
How to extract Numbers from a text string ?
Integrating Raid Drivers in the OS
"Unexpected Unrecoverable Error" in SQL Server 2008 R2 Import/Export Wizard
update query to take data from one table to another table
Setting up new Server 2008 DC to replace existing Server 2003 DC in Parallel
Mac > Fusion
code check