【发布时间】:2010-09-24 14:32:22
【问题描述】:
如何在我的 vb 代码中获取范围标识参数。到目前为止我有这个....
InsertCommand="INSERT INTO [table_name] ([title], [subtitle], [description], [image1], [image1_caption], [image2], [pdf], [meta_description], [meta_keywords]) VALUES (@title, @subtitle, @description, @image1, @image1_caption, @image2, @pdf, @meta_description, @meta_keywords); SELECT @NewID = SCOPE_IDENTITY()"
<asp:Parameter Direction="Output" Name="NewID" Type="Int32" />
如何在 DetailsView1_ItemInserted 中检索此 ID?
如果您需要更多信息,请告诉我。
谢谢
【问题讨论】:
标签: asp.net vb.net scope-identity