老问题~~又是gridview数据无法取得新值的问题~急
大家好!!我是新手,可是我为了这个问题已经一个礼拜睡不好了。哪位仁兄能拔刀相助一下呢??这个gridview在rowupdating事件里面就是取不到新值呢~~书上很多都是把控件一拉就得了。很少有介绍直接用代码来的,大家看一下我的程序吧。。。直接能运行的
******************
ASP.NET页面
<%@ Page Language= "C# " AutoEventWireup= "true " CodeFile= "Default5.aspx.cs " Inherits= "Default5 " %>
<!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>
<fieldset>
<legend> 使用ObjectDataSource控件绑定数据访问层 </legend>
<table>
<tr>
<td> 选择地区: <asp:DropDownList ID= "DropDownList1 " runat= "server " AutoPostBack= "True " >
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
<asp:GridView ID= "GridView1 " runat= "server " AllowPaging= "True " PageSize= "5 " OnPageIndexChanging= "GridView1_PageIndexChanging " AutoGenerateEditButton= "True " OnRowEditing= "GridView1_RowEditing " OnRowUpdating= "GridView1_RowUpdating " AutoGenerateColumns= "False " >
&n