"select * from app_project where c_focus=" & focus &" order by c_id desc"
解决方案 »
- 怎样获取指定文件夹下最新文件的文件名
- 关于Global.asax的问题
- 大家讨论一下:你们平时怎么调试aspnet程序的,我调试程序好疼苦!!
- [在线等]一个奇怪的错误
- SqlConnection连接 Sql Server2000的问题
- Dreamweaver怎么改变字体颜色
- 有关AspNetPager控件查询分页的例子(马上结帖!!!!)
- 如何用asp.net内置的FTP组件实现,文件下载功能!!??
- PostBack后是先执行Page_Load()还是.....
- 出错信息:与“ISMS.Web.UserControl.assetitemmodule.GetMeritIndex(string)”最匹配的重载方法具有一些无效参数
- 请问我在treeview中加入了HTML中的CHECKBOX,在后台如何捕获。
- 我遇到很奇怪的问题
<asp:ListItem Value="all">全部</asp:ListItem>
<asp:ListItem Value="1">焦点</asp:ListItem>
</asp:DropDownList>
运行时想从浏览器看到的是”全部、焦点“,而取值时得到的是”all、1“。我的解决办法:
我用的是focus=isfocus.selecteditem.value 或focus=isfocus.selecteditem.text,可是我得到的总是DropDownList控件显示的值”全部、焦点“。我也在page_load中加入了相应代码: If Not IsPostBack Then
Dim myList As New ArrayList()
myList.Add("全部")
myList.Add("焦点")
isfocus.DataSource = myList
isfocus.DataBind()
End If
最后,请你告诉我问题在那呢?????????
用dropdownlist的 DataTextField 和DataValueField 属性来制定你需要显示和返回的值