**急,求救,在线等!<未将对象引用设置到对象的实例> 先判断SelectionList1.Selection是否为空在取值 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我遇到过这样的问题,首先就是看看SelectionList控件是否已经绑定数据,还有就是Label1是否已经在页面申明了protected System.Web.UI.WebControls.Label Label1;test! SelectionList是什么呀?我第一次听说也。 private void Command1_Click(object sender, System.EventArgs e){ if (SelectionList1.Selection.Value!="") { Label1.Text=SelectionList1.Selection.Value; this.ActiveForm=Form2; }}另外要看你的页面上有没有Label1控件? 未将对象引用设置到对象的实例--------------SelectionList1没定义或SelectionList1不是实例化对象 绑定的时候,有无分别指定TEXT和VALUE的对应字段? 加上这句吧protected System.Web.UI.WebControls.Label Label1; 各位,以上的方法我都试了,可还是不行。private void Command1_Click(object sender, System.EventArgs e){ if (SelectionList1.Selection.Value!="") //连这行都过不去。{ Label1.Text=SelectionList1.Selection.Value; this.ActiveForm=Form2; }} SelectionList那个大虾开发的控件 关于下拉框联动的问题 弹出窗口类似confirm,但要好看的 求大神帮忙~ datagrid中的两个列(车牌和车号)想合成一个列(车牌号)怎么做? 错误信息是未将对象设置到引用实例,相同的操作为什么有的机器可以成功有些就不行?? JS命令在aspx中如何执行的,格式是怎样的?求教,新学者,不太明白 高手进怎么弄在先播放?....急哦!!我等!!!!!!!有分哦 Flash+Xml幻灯轮显+后台管理asp.net 上传路径问题 想问问petshop的网站后台在那里? 急死我了呀!求助! 有什么办法能获取Windows的语言?
首先就是看看SelectionList控件是否已经绑定数据,
还有就是Label1是否已经在页面申明了
protected System.Web.UI.WebControls.Label Label1;test!
{
if (SelectionList1.Selection.Value!="") {
Label1.Text=SelectionList1.Selection.Value;
this.ActiveForm=Form2;
}
}另外要看你的页面上有没有Label1控件?
--------------
SelectionList1没定义或SelectionList1不是实例化对象
protected System.Web.UI.WebControls.Label Label1;
private void Command1_Click(object sender, System.EventArgs e)
{
if (SelectionList1.Selection.Value!="") //连这行都过不去。
{
Label1.Text=SelectionList1.Selection.Value;
this.ActiveForm=Form2;
}
}