DropDownList1.items(DropDownList1.selectindex).text
解决方案 »
- webform中 如何运行指定路径下的EXE文件
- 一个脚本事件能否触发两次异步?
- 怎么给GridView的模板列中的TemplateFielD,添加一个DataField属性?
- 各位GGJJ们,哪里有ASP.net的视频教程?
- 复杂的GridView问题
- 弹出新的窗口,可是弹出后页面被刷新了,能不能弹出新窗口而不刷新页面?
- ??求救 ,请问如果在asp.net+c#中清除Cookies
- C#中调用存储过程能否用sqldataadapter????------waiting!!!!
- 还是关于弹出窗口的问题
- postman中oauth1.0的oauth_signature生成算法用.net怎样实现
- DropDownList的问题?
- 弹出窗口
To xinyu_1980(心雨):
你说的:DropDownList1.items(DropDownList1.selectindex).text仍然返回的是string 类型的呀。而我要的是int 类型的值!
System.Convert.ToInt32(DropDownList1.items(DropDownList1.selectindex).text)
把string转换成int就可以使用了。