开发者

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

开发者 https://www.devze.com 2022-12-28 14:25 出处:网络
If I have a SqlDataSource with InsertCommand=\"INSERT [Applications] ([UserID]) VALUES (@UserID);SELECT @ApplicationID=SCOPE_IDENTITY()\"

If I have a SqlDataSource with

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

Can I use a SessionParameter to 开发者_如何学Gostore the returned value?

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

精彩评论

暂无评论...
验证码 换一张
取 消