I have a hard time to debug asp.net webform application using SqlDataSource. For the insert command -
DataSource.ConnectionString = ConnectionManager.ConnectionString;
DataSource.ProviderName = ConnectionManager.ProviderName;
DataSource.InsertCommand = "INSERT INTO tblTest(ID, test1, test2, test3, test4, test5, test6, test7, test8) Values(@ID, @test1, @test2, @test3, @test4, @test5, @test6, @test7, @test8)"
I am looking for the complete T-SQL insert string with filled parameter values such as
INSERT INTO tblTest(ID, test1, test2, test3, test4, test5, test6, test7, test8) Values(a0, 1, 2, 3, 4, 5, 6, 7, 8)
Currently I can set the a break-point in
protected void DataSource_Inserted(object sender, SqlDataSourceStatusEventArgs e)
{
}
But SqlDataSourceStatusEventArgs only has InsertCommand and parameter collections in separate objects. It is very inconvenient to put them together as a T-SQL command.
How do you guys debug SqlDataSource in Visual Studio?
Thanks