Given the following code how would I get the return value from InsertData():
<asp:ObjectDataSource ID="ObjectDataSource1" Runat="server"
TypeName = "MyNamespace.MyObject"
InsertMethod = "InsertData">
<asp:Parameter Direction="ReturnValue" Name="Return" Type="Int32" />
I would like to be able to say something like the following in my code-behind:
Sub SomeGridView_DataBound(s As Object, e As EventArgs)
Dim intId As Integer
intId = ObjectDataSource1.SelectParameters(0).ReturnValue
This obviously doesn't work, but hopefully you see what I'm trying to do here.