vb.net 连sql对表进行操作

来源:百度知道 编辑:UC知道 时间:2024/06/27 08:58:22
只要最基本的操作
增加,删除,修改
报表
表 name age
通过edit框增加记录

谁能作一个给我!!
本人不胜感激!!!
spadezone@21cn.com

这是运行过的程序:(VB.NET)

Imports System.Data
Imports System.Data.SqlClient

Public Class WebForm3
Inherits System.Web.UI.Page

#Region " Web 窗体设计器生成的代码 "

'该调用是 Web 窗体设计器所必需的。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

End Sub
Protected WithEvents Label5 As System.Web.UI.WebControls.Label
Protected WithEvents DropDownList1 As System.Web.UI.WebControls.DropDownList
Protected WithEvents Label1 As System.Web.UI.WebControls.Label
Protected WithEvents DataGrid1 As System.Web.UI.WebControls.DataGrid
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents Button2 As System.Web.UI.WebControls.Button

'注意: 以下占位符声明是 Web 窗体设计器所必需的。
'不要删除或移动它。
Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal send