your code looks ok, can you add a breakpoint on
BindDataGrid();
in DoItemUpdate, and debug your page to see it ever gets there?otherwise, it could be some caching problem
BindDataGrid();
in DoItemUpdate, and debug your page to see it ever gets there?otherwise, it could be some caching problem
解决方案 »
- GridView动态绑定后如何导出数据到Excel?
- 新手求助啊,DropDownList问题
- 有哪位可以帮忙设计一个在线答题系统(请说具体点吧)
- 导入Excel文件问题
- asp base64的加密解密算法,和.net base64的加密解密算法的差异...求救!
- 登陆ASP.NET页面时,为什么会自动补加一段代码???
- 一个 Microsoft Message Queuing 的问题
- 如何传参数给javascirpt?
- 简单问题请教~~~立刻给分~~~~~~~~
- DataList编辑的问题
- 使用Treeview控件时,当鼠标指向一个结点并停留片刻时,会有一行英文说明"use+/- to expand//collapse,怎样将它去掉?
- datagrid 应用
BindDataGrid();
处,加个断点,看是否执行BindDataGrid()了否则的话,也许是缓存问题,去IE菜单,工具->网络选项->普通页,按设置按钮,选“每次访问”。
page_load这么写
if (!Page.IsPostBack)
{
BindDataGrid();
}
else
{
MyDataGrid.EditItemIndex = -1;
BindDataGrid();
}