to * set * a variable? If I have a SqlDataSource with InsertCommand="INSERT [Appli...">

Can I use <asp: SessionParameter Direction = "Output" / "> to * set * a variable?

If I have a SqlDataSource with

InsertCommand="INSERT [Applications] ([UserID]) VALUES (@UserID);SELECT @ApplicationID=SCOPE_IDENTITY()"

      

Can I use SessionParameter to store the return value?

<asp:SessionParameter SessionField="__ApplicationID" Name="ApplicationID" Type="int32" Direction="Output" DefaultValue="-1" />

      

+2


a source to share





All Articles