DropDownList1.DataSource=DS.Tables("class").DefaultView;
就是这句!!!!!!!!!!!!!??????????
就是这句!!!!!!!!!!!!!??????????
解决方案 »
- Server.HtmlEncode()和Server.HtmlDecode()在asp.net中的应用
- 用哪种语言和开发平台,开发出来的WEB网站程序,在android和iphone下都可以使用?
- 如何在Repeater控件的ItemTemplate模板内,给ImageButton加上“确认删除吗?”的脚本。
- 为什么我的存储过程返回-1
- 每天一问,关于Request.Form的问题
- 怎麽在javascript中保存信息服務器端能接受到?
- 请问如何在ASP.NET2.0里制作横向菜单?
- 有什么方法可以使dropDownList 和 textbox 显示成label的样式?
- 代码中用中文变量会不会有问题
- 使用advapi32.dll来作身份模拟,求方法说明!
- 我想用treeview做一个动态目录,与数据库一起用,怎么做?
- 求一文件路径的正则表达式
试改为
DropDownList1.DataSource=DS.Tables["class"].DefaultView;
<asp:DropDownList id="classname" style="Z-INDEX: 101; LEFT: 287px; POSITION: absolute; TOP: 197px" runat="server" DataTextField="classname" DataValueField="classname"></asp:DropDownList>代码中叶改为
classname.DataSource=DS.Tables["class"].DefaultView;
classname.DataBind();
string StrSql="select classname from class";为何显示Server Error in '/exercise' Application.
--------------------------------------------------------------------------------Access to the path "D:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\exercise\ef46110a\64a4c380\hash.web" is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.