随笔分类 -  [01] ASP.NET

ASP.NET用于开发或设计网页/网站。
摘要:当用GridView导出Execl的时候,会发生只能在执行 Render() 的过程中调用 RegisterForEventValidation的错误提示。 有两种方法可以解决以上问题: 1.修改web.config(不推荐)<pages enableEventValidation ="false" ></pages> 2.直接在导出Execl的页面修改... 阅读全文
posted @ 2009-08-13 17:57 emanlee 阅读(266) 评论(0) 推荐(0)
摘要:在接触Ajax Control Toolkit之后,发现CalendarExtender的使用真的很方便,只要把控件拖入就能够使TextBox弹出日期选择。 不过大家都是否有跟我一样的问题,那就是...怎么显示的都是英文的呢,这样的话用户一定会不接受!! 经过试验和多方查找,其实要解决这个问题很简单,使用Ajax Control Toolkit的控制之前,我们需要先放置一个【asp:Scrip... 阅读全文
posted @ 2009-08-13 17:44 emanlee 阅读(465) 评论(0) 推荐(0)
摘要:最近做一个东西用到DetailsView,所以看了一下资料,用了一下,以前也没用过这个控件,不过与GridView结合起来使用还不错的,因为GridView自带了增、删、改功能,但没有增加,DetailsView的结合就很好的粥补了这一缺点,也可以使GridView中查看单条数据记录的详细信息变是更加方便。 HTML中的代码: <%@ Page Language="C#&quo... 阅读全文
posted @ 2009-08-08 21:17 emanlee 阅读(841) 评论(0) 推荐(0)
摘要:asp.net2.0用登陆控件进行用户户登录的时候经常会出现: 回发或回调参数无效。在配置中使用 <pages enableEventValidation="true"/> 或在页面中使用 <%@ Page EnableEventValidation="true" %> 启用了事件验证。出于安全目的,此功能验证回发或回调事件的参数是否... 阅读全文
posted @ 2009-08-08 21:14 emanlee 阅读(963) 评论(0) 推荐(0)
摘要:The data source does not support server-side data paging. (GridView, Databind())   Data Reader is forward only You cannot use datareader with Paging controls for better performance fecth the r... 阅读全文
posted @ 2009-08-08 21:14 emanlee 阅读(508) 评论(0) 推荐(0)
摘要:方法一(已测试): 首先将按钮那一列转化为模版,然后在其属性里加入下面的js语句,就能弹出一个确认窗口。 <ItemTemplate>          <asp:LinkButton ID="LinkButton1" runat="server" Cause... 阅读全文
posted @ 2009-08-08 18:46 emanlee 阅读(401) 评论(0) 推荐(0)
摘要:UpdateProgress always seems to render the contents of <ProgressTemplate> on a new line (block). Any simple way to have that render inline where it is placed?============Best soultion I could come up with was to use the following code:<p><span class="progress"> <atlas:U 阅读全文
posted @ 2009-08-06 19:35 emanlee 阅读(407) 评论(0) 推荐(0)
摘要:在我们从业务逻辑层获得数据实体时候,接下来的事情就是要绑定到控件中。数据实体中的一些字段可以直接绑定到界面中,但是有一些字段需要重新格式化格式。比如货币单位字段,需要显示货币符号和每隔三位显示分隔符;再比如日期字段,数据库中存放的是日期和时间,但是在界面上需要按照XXXX年XX月XX日的格式显示。这时候我们就用到了DataFormatString属性。 <asp:GridView ID=&q... 阅读全文
posted @ 2009-08-05 12:34 emanlee 阅读(474) 评论(0) 推荐(0)
摘要:转自:http://www.livelog.org/article.aspx?id=2 .Text http://www.telligentsystems.com/Solutions/Forums/ 多用户 ASP.NET 1.1 SQL Server 2000 开源 更新情况: 英文原版已经并入Community Server。博客园(http://cnblogs.com )基于.Text构建... 阅读全文
posted @ 2009-07-15 22:33 emanlee 阅读(3976) 评论(0) 推荐(0)
摘要:Programmatically Modify Site-Map Nodes in Memory  (asp.net:  update/change SiteMapNode’s URL) private SiteMapNode ExpandForumPaths(Object sender, SiteMapResolveEventArgs e)    ... 阅读全文
posted @ 2009-07-15 17:48 emanlee 阅读(247) 评论(0) 推荐(0)
摘要:  1 Strart Menu开始菜单 – Run运行 2 输入DComCnfg,确定OK 3 选择 Component Services – Computer – My Computer – DCOM Config 4 选择 Microsoft Excel Application, 右击Right Click -属性Properties 5 选择 Security Tab – ... 阅读全文
posted @ 2009-07-14 11:12 emanlee 阅读(2888) 评论(0) 推荐(0)
摘要:发布网站的时候有三个选项: 第一个选项指定发布后是不是可以修改aspx文件,如果勾选,则发布后的网站行为基本与ASP.NET 1.1一致,只要没有增删修改控件,可以直接在服务器上修改aspx文件不用重新发布网站。 第二个选项指定是不是将每个aspx文件都编译成一个DLL文件,这样,就可以在修改了哪个aspx网页(包括aspx和cs文件),只需要更新一个DLL文件就行了,不用整站全部更新。1 允许更... 阅读全文
posted @ 2009-07-11 08:36 emanlee 阅读(575) 评论(0) 推荐(0)
摘要:未预编译文件“/default.aspx”,因此不能请求该文件。 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Web.HttpException: 未预编译文件“/default.aspx”,因此不能请求该文件。   原因: 缺少部分编译后的文件。未Publish部分... 阅读全文
posted @ 2009-07-11 08:29 emanlee 阅读(4929) 评论(1) 推荐(0)
摘要:a) Creating a webservice that calls a Thread? b) Creatinga webservice with [SoapDocumentMethod(OneWay=true)] c) Any better way? without using an external program? Another way is queuing jobs. MSMQ or... 阅读全文
posted @ 2009-07-10 23:24 emanlee 阅读(471) 评论(0) 推荐(0)
摘要:(1)遍历Grid中的所有Item(一行),一次仅展开一行【Single expand in hierarchical grid】 private void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) { if(e.CommandName == RadGrid.ExpandCollapseC... 阅读全文
posted @ 2009-05-30 23:34 emanlee 阅读(927) 评论(0) 推荐(0)
摘要:Error: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]   Solution: (1) Try removing the runat=server setting in the head tag as we... 阅读全文
posted @ 2009-05-29 19:37 emanlee 阅读(460) 评论(0) 推荐(0)
摘要:  Im pretty sure that its because System.Web.Extensions.dll isnt up-to-date of isnt the latest version. Im confused by the fact that I have two versions of System.Web.Extensions.dll installed on... 阅读全文
posted @ 2009-05-27 23:25 emanlee 阅读(1505) 评论(0) 推荐(0)
摘要:错误(Scenario): Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and mod... 阅读全文
posted @ 2009-05-27 09:27 emanlee 阅读(1835) 评论(0) 推荐(0)
摘要:這幾天在玩 .Net 3.5,發現了一個疑問,就是在 IIS 裡面為什麼看不到 ASP.NET 3.5 的選項?!且以前在 .NET 2.0 的時候有個 aspnet_regiis.exe 的執行檔在 .NET 3.5 也看不到!! 後來我才搞懂,原來 ASP.NET 3.5 只是使用 .Net Framework 3.5 的組件(assembly)而已!整個核心的架構還是建立在 .NET 2.... 阅读全文
posted @ 2009-05-27 09:01 emanlee 阅读(5664) 评论(2) 推荐(1)
摘要:BlogEngine.NET 1.5 出现错误:字符串中有乱码。 解决方法: (1)删除labels.zh-CN.resx中的所有中文标点符号。 (2)或者修改Web.Config <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="auto... 阅读全文
posted @ 2009-05-15 13:55 emanlee 阅读(569) 评论(0) 推荐(0)