- TEL:131 7970 3111
-
慧網(wǎng)微信
- 掃描二維碼
- 關(guān)注邳州在線
-
手機網(wǎng)站
- 手機掃描二維碼
- 進入手機站
網(wǎng)站地圖
付款方式
<%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.SQL" %> <html> <script language="VB" runat="server"> Dim MyConnection As SQLConnection Sub Page_Load(Src As Object, E As EventArgs) MyConnection = New SQLConnection("server=YOUR-SERVER;uid=joeuser;pwd=joeuser;database=pubs") If Not (IsPostBack) Sub MyDataGrid_Delete(Sender As Object, E As DataGridCommandEventArgs) Dim MyCommand As SQLCommand MyCommand = New SQLCommand(DeleteCmd, MyConnection) MyCommand.ActiveConnection.Open() Try MyCommand.ActiveConnection.Close() BindGrid() Sub BindGrid() Dim DS As DataSet DS = new DataSet() MyDataGrid.DataSource=DS.Tables("Authors").DefaultView </script> <body style="font: 10pt verdana"> <form runat="server"> <h3><font face="Verdana">Deleting a Row of Data</font></h3> <span id="Message" MaintainState="false" style="font: arial 11pt;" runat="server"/><p> <ASP:DataGrid id="MyDataGrid" runat="server" <property name="Columns"> </ASP:DataGrid> </form> </body> |
來源:http://edu.chinaz.com |