WinForm 里面ListBox的问题

一直在做B/S 结构的东西,很长时间没有再接触C/S 的了;
有如下代码,发现C/S 在用B/S的一些方法
private System.Windows.Forms.ListBox clbConditionCreate;
...
this.clbConditionCreate = new System.Windows.Forms.ListBox();
...
string str_SelectConditon="";
str_SelectConditon=(((System.Web.UI.WebControls.ListItem)this.clbConditionCreate.SelectedItem).Value.ToString().Trim());
把clbConditionCreate 选择内容的Value值保存到str_SelectConditon

posted @ 2005-05-26 10:11  jhtchina  阅读(743)  评论(0编辑  收藏  举报