CSDN博客

img xuandhu

删除一条记录的过程

发表于2004/10/17 10:17:00  874人阅读

分类: ASP.NET数据处理

        Dim conPortal As New SqlConnection(CommunityGlobals.ConnectionString)
        Dim cmdDelete As New SqlCommand("DELETE  Community_ContentPages WHERE ContentPage_ID = @contentPageID", conPortal)
        '  cmdDelete.CommandType = CommandType.StoredProcedure
        cmdDelete.Parameters.Add("@contentPageID", 40)
        conPortal.Open()
        cmdDelete.ExecuteNonQuery()
        conPortal.Close()
阅读全文
0 0

相关文章推荐

img
取 消
img