Last post Jan 01, 2011 04:15 PM by newbie2C#
Jan 01, 2011 01:35 PM|newbie2C#|LINK
I want to do some stuff in the ItemInserted event of the object data source. I'm not sure which event Args choice I should use in the method though. There is no ObjectDataSourceInsertedEventArgs.
protected void MyDataSource_ItemInserted(object sender, ObjectDataSourceStatusEventArgs e)
ObjectDataSourceStatusEventArgs looks like the closest to what I need, Is this the correct on for a method that is fired when the ItemInserted event is fired for the Object Data Source?
Jan 01, 2011 02:43 PM|vijaypant|LINK
Hi, the correct event is Inserted for SqlDataSource. So, the event handler attached using visual studio ide is:
protected void SqlDataSource1_Inserted(object sender, SqlDataSourceStatusEventArgs e)
//your code here
Jan 01, 2011 04:15 PM|newbie2C#|LINK