12 2013 档案
摘要:例:ListItem item=ddlUserList.Items.FindByText("张飞");if(item!=null){ item.Selected=true;}
阅读全文
摘要:----解决方案1-------------------- 为工程添加WEB引用 ------解决方案2--------------------右键 解决方案资源管理器 中的引用 -- 添加引用 -- .NET 选项卡 -- 选中System.Web.dll -- 选择 -- 确定 ------解决...
阅读全文
摘要:#region 最简单的导出Excel publicvoid CreateExcel(DataTable _table, string FileName) { //FileName = Server.UrlEncode(FileName); ...
阅读全文
摘要:在.NETFramework2.0版中新增Login类.而我们又增加Login.aspx时莫名地冲突了。这个问题也不给提示,让人分析起来好困难。中Inherits="Login"这句,在创建页面Login.aspx的时候,vs2005在后台页面Login.aspx.cs也创建了类publicpart...
阅读全文
摘要:1、.NET 安装的顺序应该是先装IIS,再装VS.NET,如果次序反了,或者IIS重装了,就需要使用aspnet_regiis.exe -i来重新安装IIS Mapping(主要用于aspx, asmx等文件的Extention的匹配)。在C:\WINDOWS\Microsoft.NET\Fram...
阅读全文
摘要:Windows server 2003,2008 Web.Config 配置连接sql 使用 win身份验证时:当连接sql server使用信任连接(参看Web.Config文件)时就会出这个错误,在Windows XP当中,ASP.NET的运行帐号是ASPNET,而在Windows server...
阅读全文