You can access the fields values through the command object which is passed
to the event handlers. For example one might add to the markup:
OnSelected ="sqldsOrderDetail_Selected"
and then during handling the Selected event, one might write:
void sqldsOrderDetail_Selected(object sender, SqlDataSourceStatusEventArgs e)
{
//get a reference to the command object used by the SqlDataSource
System.Data.Common.DbCommand command = e.Command;
//you can access the parameter value
Response.Write(command.Parameters["@OrderID"].Value.ToString());
}
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
TJHerman said:
Is there any way to refer to the specific field values in an sqldatasource in
a formview without doing the sqldataadapater, datatable, etc.?