随笔分类 -  [01] ASP.NET

上一页 1 ··· 3 4 5 6 7 8 9 下一页
ASP.NET用于开发或设计网页/网站。
摘要:将Response.Redirect写入try...catch会出现异常 try { Response.Redirect("Index.aspx"); } catch(Exception e) { Response.Redirect("Error.aspx?message=" + e.Message); } 如上,则会显示"Thread was being ab... 阅读全文
posted @ 2008-11-16 12:18 emanlee 阅读(2517) 评论(0) 推荐(0) 编辑
摘要:MasterPage路径 ------------------ From: http://hi.baidu.com/%B7%E7%D3%EA%B9%CA%C8%CB/blog/item/897ac13582b06c1090ef39e3.html 关于masterpage中图片路径的问题, 如果引用相对路径http://www.cnblogs.com/XXX.gif那么会出现如果继承了masterp... 阅读全文
posted @ 2008-11-14 18:46 emanlee 阅读(1616) 评论(0) 推荐(0) 编辑
摘要:From: http://tech.it168.com/d/2008-07-16/200807161434833.shtml 【ITPUB 专稿】 1. 数据库访问性能优化 数据库的连接和关闭 访问数据库资源需要创建连接、打开连接和关闭连接几个操作。这些过程需要多次与数据库交换信息以通过身份验证,比较耗费服务器资源。ASP.NET中提供了连接池(Connection Pool)... 阅读全文
posted @ 2008-11-08 21:14 emanlee 阅读(223) 评论(0) 推荐(0) 编辑
摘要:用System.Net.Mail发送邮件时错误信息 配置示例如下: 配置错误及提示信息: SmtpServer错误: Unable to connect to the remote server Port错误: Un... 阅读全文
posted @ 2008-11-01 11:21 emanlee 阅读(2040) 评论(2) 推荐(0) 编辑
摘要:Example Application The problem is that by default Microsoft Excel as a COM object can only activated by the following accounts: AdministratorSystemInteractive When you are running your ASP.Net ac... 阅读全文
posted @ 2008-10-31 22:12 emanlee 阅读(5413) 评论(0) 推荐(0) 编辑
摘要:Log4net: use Sql Server to log your application events by Emanuele 2/23/2008 2:26:00 PM In the previous article on the Log4net configuration, I explain how to configure Log4net with the file appende... 阅读全文
posted @ 2008-10-31 12:33 emanlee 阅读(935) 评论(0) 推荐(0) 编辑
摘要:Ref: http://support.microsoft.com/kb/842419/en-us How to grant permissions to a custom assembly that is referenced in a report in Reporting Services View products that this article applies to. ... 阅读全文
posted @ 2008-10-17 20:38 emanlee 阅读(806) 评论(0) 推荐(0) 编辑
摘要:问题: asp:Menu 在Safari浏览器中显示不正常。 解决方法一:(App_Browsers) Step1: Add App_Browser Folder in application right click on project add ASP.Net Folder - App_Browsers right click on App_Brows... 阅读全文
posted @ 2008-10-14 12:48 emanlee 阅读(741) 评论(1) 推荐(0) 编辑
摘要:REF: http://forums.aspfree.com/net-development-11/displaying-multiple-columns-in-a-html-listbos-control-in-asp-19062.html listbox column spacing solution FINALLY!!! I Know so many people have had... 阅读全文
posted @ 2008-10-03 22:02 emanlee 阅读(700) 评论(0) 推荐(0) 编辑
摘要:The problem I had this problem in Visual Studio 2005 and now I have it in Visual Web Developer 2008 express edition where when debugging a web application using the development web server the dynamic... 阅读全文
posted @ 2008-09-26 13:23 emanlee 阅读(368) 评论(0) 推荐(0) 编辑
摘要:ref: http://blog.sina.com.cn/s/blog_4b1a1001010007zf.html http://hi.baidu.com/trip008/blog/item/80b56aa7a09c0b91d0435821.html 前台: function GetFocus() { if(event.keyCode==13) { doc... 阅读全文
posted @ 2008-09-19 21:08 emanlee 阅读(2135) 评论(0) 推荐(0) 编辑
摘要:ref http://forums.asp.net/t/1048637.aspx http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=147013&SiteID=1 http://aspadvice.com/blogs/joteke/archive/2008/08/24/Is-_2200_Databinding-methods-such-as... 阅读全文
posted @ 2008-09-19 19:08 emanlee 阅读(1043) 评论(1) 推荐(0) 编辑
摘要:【CSDN 12月11日消息】 IT调研服务提供商IDC日前发布的一份调研报告指出,中国38%的IT从业人员靠微软及其合作伙伴所组成的生态系统生存。而无论是产品的版本升级还是不断出新,微软迈在技术前沿的脚步向来矫健。 微软系技术的开发者如何从中把握技术方向、如何选择并面对面对不断出现的新技术……带着诸多问题,记者采访了2003-2007微软最有价值专家,TechExcel中国研发部经理李洪根。 ... 阅读全文
posted @ 2008-09-09 12:09 emanlee 阅读(876) 评论(0) 推荐(0) 编辑
摘要:取代用户ID和密码成为验证网络使用者身份的新途径 ,CardSpace沙盒是微软NetFx3.com提供给用户的测试环境,它基于完整的CardSpace技术构建,用来预览未来的身份验证机制,除了传统的用户名密码登录之外,这个站点还支持最新的Windows CardSpace验证,在沙盒中,你可以: 建立一个使用用户名和密码或自发行的Windows CardSpace... 阅读全文
posted @ 2008-08-11 19:37 emanlee 阅读(1207) 评论(0) 推荐(0) 编辑
摘要:Microsoft Windows Workflow Foundation (WWF) 是一个可扩展框架,用于在 Windows 平台上开发工作流解决方案。作为 Microsoft WinFX 的组成部分,Windows Workflow Foundation 同时提供了 API 和一些工具,用于开发和执行基于工作流的应用程序。Windows Workflow Foundation 提供单个统一的... 阅读全文
posted @ 2008-08-11 19:23 emanlee 阅读(2414) 评论(0) 推荐(0) 编辑
摘要:从WCF所处的位置来看,它是包含在.NET 3.0(也包括.NET 3.5)之中的。我们注意比较.NET 3.0与.NET 2.0,其实唯一的区别就是.NET 3.0包含了WCF、WPF、WF(或者还有CardSpace)而已。因此,我们认为WCF是.NET框架的一部分,似乎并不为过。尤为关键的是, WCF并不能脱离.NET框架而单独存在(但非WCF客户端可以调用WCF服务),因此,虽... 阅读全文
posted @ 2008-08-11 19:03 emanlee 阅读(23814) 评论(2) 推荐(3) 编辑
摘要:以前没留意这么用,不知道有Container.ItemIndex直接取得行序号的属性,都是声明一个变量 i 直接 今天看了一下直接有类库中提供了 Gridview中使用取得当前行的序号 而在Repeater控件中使用Container.ItemIndex取得当前行的序号,主要格式, Container.ItemIndex 用于绑定中的 ... 阅读全文
posted @ 2008-08-05 12:23 emanlee 阅读(2014) 评论(0) 推荐(0) 编辑
摘要:System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client 方法一:通过在 Page 指令或 配置节中设置 validateRequest="false" 可以禁用请求验证 方法二:正确的做法是在你当前页面添加Page_Erro... 阅读全文
posted @ 2008-07-17 20:37 emanlee 阅读(2671) 评论(0) 推荐(0) 编辑
摘要:如果想要一个table固定大小,里面的文字强制换行(尤其是在一长串英文文本,并且中间无空格分隔的情况下),以达到使过长的文字不撑破表格的目的,一 般是使用样式:table-layout:fixed。但是在Firefox下面,会有一些问题,参考Gmail的一些做法,做了几个测试,得出一种解决 办法。 如 果想要一个table固定大小,里面的文字强制换行(尤其是在一长串英文文本,并且中间无空格分隔的情... 阅读全文
posted @ 2008-05-22 16:54 emanlee 阅读(6123) 评论(0) 推荐(0) 编辑
摘要:方法一: 验证控件验证(经实践可行) Setting the Maxength of a TextBox when it is in Multiline, You can use RegularExpressionValidator control as shown below 方法二:弹出对话框提示 1.html代码 WebForm6 ... 阅读全文
posted @ 2008-05-22 16:17 emanlee 阅读(3873) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 下一页