dropdowlist属性autopostback设为true;private void dropdownlist1_SelectedIndexChange(.....)
{
label1.Text = dropdownlist1.selecteditem.text;
}
{
label1.Text = dropdownlist1.selecteditem.text;
}
解决方案 »
- sql连接释放问题??求解释
- GridView问题
- 动态设置Panel的大小
- 请问Cookie的存储和读写方式有几种啊
- 编码问题,百思不得其解,就是如何把网页里的UNICODE(比如确定)转换成中文汉字问题..
- 我提交数据的时候报错( 将截断字符串或二进制数据。)
- ●● 如何得到DataSet下的某表中的当前行第几条记录!!!
- 请问在ASP.NET中怎样查找客户端的某个文件是否存在?
- Velocity 如何取得List[Index].属性
- 如何理解"作为服务器控件运行"
- 如何在treeview中实现动态显示一个"新",表示还没有浏览过,在浏览过之后显示为正常的"已读"
- 简单问题:我用 DATALIST 做了个BBS界面 。就是回帖的那种功能如何做?
End SUb
双击dropdownlist写代码
YourLabel.Text=YourDropdownList.SelectedItem.Text
End SUb
Label1.Text = CStr(DropDownList2.SelectedItem.Text) End Sub
我的dropdownlist的AutoPostBack设置为True
但还是不行呀!!!
{
this.Label2.Text=this.DropDownList1.SelectedItem.Text;
}
dropdownlist的AutoPostBack设置为True
有点问题
this.DropDownList1.SelectedItem.Text;这个 Text 即使改为Value 出现相类似的错误
F:\lwei\aaaa\WebForm3.aspx.cs(51): “int”并不包含对“Text”(value)的定义