当前位置:
代码迷
>>
ASP.NET
>> this.GridView1.DataSource 在点了旋钮后被清空NULL了`
详细解决方案
this.GridView1.DataSource 在点了旋钮后被清空NULL了`
热度:
2011
发布时间:
2013-02-25 00:00:00.0
this.GridView1.DataSource 在点了按钮后被清空NULL了```
如题,要如何设置,在其他按钮中需要调用这个GRIDVIEW的数据源``````望指导````
------解决方案--------------------------------------------------------
内容不太多的话,可以存在ViewState里:ViewState["数据源"]=数据源;
或者把查询数据库填充数据表的代码写到一个方法里,重用它。
查看全文
相关解决方案
struts2 对象属性流入不进去, 报错:target is null for setProperty(null, "x" [Ljava.lang.Stri
!使用JDNI时,报 Cannot create JDBC driver of class '' for connect URL 'null'
null id in com.bsw.gms.hibernate.pojo.Score entry (don't flush the Session after an exception occurs,该怎么解决
org.hibernate.PropertyAccessException: Null value was assigned to a property of解决办法
null == a 跟 a == null 的区别
null!= xxx 跟 xxx!=null有什么区别
下传组件老说PostedFile = null
行15: 没法获取属性“appendChild”的值: 对象为 null 或未定义
cid = (string.IsNullOrEmpty(typeId) ? null : ( Convert.ToInt32( typeId)) ) 有解决方案
存储过程调用 is not null 判断不成功解决思路
MVC3.0 Model主外键关联有关问题 设置foreignkey后取不到数据,null
外网,访问数据库揭示 用户'(null)' 登录失败。原因: 未与信任 SQL Server 连接相关联
this.GridView1.DataSource 在点了旋钮后被清空NULL了`
GridView1.Rows.Count解决方法
求答案 GridView1.Rows.Count 一直等于0解决思路
GridView1:System.Web.UI.WebControls.DataControlFieldCollection 必须具有类型为“System.We,该如何处理
转换((TextBox)GridView1.Rows[e.RowIndex].Cells[1].Controls[0]).Text.Trim();报错,该如何处理
提示异常:Both DataSource and DataSourceID are defined on 'GridView1'
GridView1 控件 里面的数据怎么居左对齐
不能以声明的方式设置“DataSource”属性。解决思路
GridView1 分页 激发了未处理的事件“PageIndexChanging,该怎么处理
明明有值,GridView1.Rows(0).Cells(2).Text 这样读取单元格的值全为空?解决方案
select * from authors where au_id is not null 存储过程怎么写
Cache.Insert(key,key,null,DateTime.MaxValue,TimeSpan.Zero,NotRemovable,null),有2个参数不太懂解决办法
“GridView1”上同时定义了 DataSource 和 DataSourceID。请移除一个定义。该怎么解决
listbox 模版列 DataSource 的绑定 或许 字段按照要求换行
UpdatePanel装用户控件注册了脚本了但是在隐藏文件提示:"Microsoft JScript 运行时异常: 'null' 为空或不是对象"
Cookies奇怪的有关问题,Request.Cookies["FadhomeUser1"] != null
|M| if(spName==null || spName.Length=0) 好还是 if(spName==null || spName="")解决方案
GridView1.DataKeyNames = new string[] { "id"};该如何处理