G
Guest
Hi,
How to add the DeleteCommand="delete from table where ..."
related to a gridview in VB.Net, because i have no tag <asp:SqlDataSource >?
This is the content of file grid.asp:
------------------------------------
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
This is the code in grid.aspx.vb:
--------------------------------
.....(dim ...)
oConnection = New OleDbConnection()
sql = "SELECT ..."
sConnectionString = "Provider = ..."
sda = New OleDbDataAdapter(sql, sConnectionString)
dt = New DataSet()
sda.Fill(dt)
GridView1.DataSource = dt
GridView1.DataBind()
Thanks
How to add the DeleteCommand="delete from table where ..."
related to a gridview in VB.Net, because i have no tag <asp:SqlDataSource >?
This is the content of file grid.asp:
------------------------------------
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
This is the code in grid.aspx.vb:
--------------------------------
.....(dim ...)
oConnection = New OleDbConnection()
sql = "SELECT ..."
sConnectionString = "Provider = ..."
sda = New OleDbDataAdapter(sql, sConnectionString)
dt = New DataSet()
sda.Fill(dt)
GridView1.DataSource = dt
GridView1.DataBind()
Thanks