Thank you so much for your suggestion.
Fix in ASP
<asp:objectDataSource ID="ODS1" runat="server" InsertMethod="InsertSomething" SelectMethod="GetSomething"
OnItemInserted="ODS1_ItemInserted">
Fix in Code Behide
protectedvoid ODS1_Inserted(object sender, ObjectDataSourceStatusEventArgs e)
{
if (e.ReturnValue != null)
{
ViewState["ID"] = e.ReturnValue.ToString();
...
...
}
}
Last edited by nitis : July 5th, 2009 at 04:36 AM.
|