C# and ASP.net: DataSourceSelectArguments?

hfranklin2988

New member
I have a shopping cart application and need to create a checkout button. When the checkout button is pressed, the Registrations table in the database is populated with the CustomerId, ProductCode and today's date as the registration date (it should only register products that have not been previously registered). My professor gave us a hint with: DataSourceSelectArguments dssa = new DataSourceSelectArguments();
dssa.AddSupportedCapabilities(DataSourceCapabilities.RetrieveTotalRowCount);
dssa.RetrieveTotalRowCount=true;
DataView dv = (DataView)SqlDataSource1.Select(dssa);
<Variable name> = dv.Table.Columns[0].ToString();

but I don't understand this. Can anyone clarify or explain how to do this... THANK YOU! :)
 
Back
Top