!!急!在线等!gridview绑定dataset后自定义新建、删除、修改语句

来源:百度知道 编辑:UC知道 时间:2024/05/26 07:33:04
请帮忙编写一下GridView1_RowDeleting、GridView1_RowEditing、GridView1_RowInserting三个事件,急用!谢谢!回答好加分!

aspx编码:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>

<asp:Label ID="txtMsg" runat="server"></asp:Label>

gridview绑定,主要是一种学习期间用的方法,实际应用很多代码不可控,链接字符串是“Dim path As String = HttpContext.Current.Request.MapPath("~/") '获取网站根目录路径 ”这个吗,用户名和密码和服务器名需要包含在连接字符串里,sql你学的怎么样,还是用access?还是走独立编程的路吧,绑定不好用,祝你学习进步~加油!