private void ListBox1_SelectedIndexChanged(object sender, System.EventArgs e)
{
string strText = ListBox1.SelectedItem.Text ;
string strValue = ListBox1.SelectedItem.Value ;
ListBox2.Items.Add(new ListItem(strText,strValue)) ;
}还要把ListBox1的AutoPostBack属性设置为true
{
string strText = ListBox1.SelectedItem.Text ;
string strValue = ListBox1.SelectedItem.Value ;
ListBox2.Items.Add(new ListItem(strText,strValue)) ;
}还要把ListBox1的AutoPostBack属性设置为true
解决方案 »
- 第二次调用用户控件为什么不执行控件中的脚体
- 急!急!急!急! 怎么打开服务器上制定盘符上文件
- 求匹配 [xxxx] 的正则表达式
- 怎样实现单机版的投票结果统计程序
- 一个ASP.NET页面向另一个页面传递参数的时候,怎么能隐藏传递
- 我用:Request.QueryString["yonghu"].ToString()取页面上的地址,为何只取到2个字?
- 如何在用alert()或msgbox()彈出消息框時將消息框中的字體放大顯示?
- Unity有关AOP配置问题 在线等解决马上结
- ckfinder上传文件路劲问题
- 如何在DATAGRID设置一个模板列然后在模板列邦定邦定DATAGRID动态提出数据,谢谢
- 初学者,在线))))
- 再问checkedlistbox,acewang(**^o^**) 再进!
{
string strText = ListBox1.SelectedItem.Text ;
string strValue = ListBox1.SelectedItem.Value ;
ListBox2.Items.Add(new ListItem(strText,strValue)) ;
}