**急,求救,在线等!<未将对象引用设置到对象的实例> 先判断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那个大虾开发的控件 网站发布的问题 绑定的数据突然全部错乱!!!!! 如何编程动态指定<a>标签的rel属性? [急]小女子求救 根据页面所在栏目动态改变用户控件属性改变缓存内容 在VS运行时看不到FLASH的内容,但是如果在IIS上浏览就可以看到FLASH js中缺少“;” 急求关于ASP的英文版论文 呵呵,我的数据层基本完成了 DropDownList1显示不出来数据,大家帮忙看看。 C#中的逻辑表达式问题,请进:) 急死我了呀!求助! 有什么办法能获取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;
}
}