
ASP.NET
文章平均质量分 53
飞翔精灵
这个作者很懒,什么都没留下…
展开
-
Refer to class constants in markup
In order for this to work notice that you need to import the "ServerTags" namespace to the markup: <telerik:RadTabStrip ID="RadTabStrip1" runat="server" ontabclick="RadTabStrip1_TabClick" SelectedInde原创 2013-01-10 16:35:52 · 392 阅读 · 0 评论 -
Call JavaScript from server side
It is possible to execute a JavaScript from server-side code. In order to do this, make sure that the code is actually inserted on the page – the easiest way is to put a simple alert() and check if it原创 2013-08-13 13:03:15 · 660 阅读 · 0 评论 -
Attach js from server side
On suggestion is to use GridButtonColumn instead of GridTemplateColumn and set its DataTextField to corresponding field name. And you can set its CommandName and ConfirmText property like below. ASPX原创 2013-08-13 13:12:33 · 1170 阅读 · 0 评论 -
C#下载文件(TransmitFile/WriteFile/流方式)实例介绍
using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.W转载 2015-12-15 12:23:34 · 1766 阅读 · 0 评论 -
Publishing a WCF service on IIS 8
WCF services don’t run on IIS 8 with the default configuration, because the webserver doesn’t know, how to handle incoming requests targeting .svc files. You can teach it in two steps: 1. Add a n转载 2015-12-23 13:10:08 · 547 阅读 · 0 评论 -
让IIS8支持WCF的最简单方法
以前在IIS8中使用WCF时,总是参考在IIS8添加WCF服务支持这篇博文进行手工设置: 1. 首先添加MIME类型:扩展名“.svc”,MIME类型 “application/octet-stream”: 2. 然后在“Handler Mappings”中添加Managed Handler: Request path: *.svc Type: System.ServiceMo转载 2015-12-23 13:11:46 · 1303 阅读 · 0 评论