locked
accessing scope_identity in formview's iteminserted event RRS feed

  • Question


  • I have a FormView for inserting, updating and deleting data from MSSQL table.
    I use ObjectDataSource to link my FormView with business logic layer.

    How can I get access to SCOPE_IDENTITY after inserting new row?

    I have Insert method in my BLL which returns scope identity and have one ref parameter which also returns this value.
    But I see no method to access this value in ItemInserted event of FormView.

    Please help!

    • Moved by Kathy LuMicrosoft employee Thursday, March 26, 2009 5:28 PM THis is for a WebControls (Moved from ADO.NET Data Providers to Web Development in Visual Studio in the Visual Studio 2010 and .NET Framework 4.0 CTP)
    Wednesday, March 25, 2009 9:49 PM

All replies