随笔分类 -  asp.net

摘要:A Windows Azure project includes two configuration files: ServiceDefinition.csdef and ServiceConfiguration.cscfg. These files are packaged with your Windows Azure application and deployed to Windows Azure. The ServiceDefinition.csdef file contains the metadata that is required by the Windows Azure e 阅读全文
posted @ 2013-11-25 10:04 一切都是幸福叻 阅读(375) 评论(0) 推荐(0)
摘要:1.open Run command.2.enter 'mmc' .3.Click File, and Add or Remove Snap-in.4.Select Certificates, and then Select My user account / Computer account.5.import certificates into PC/Current User 阅读全文
posted @ 2013-11-22 11:02 一切都是幸福叻 阅读(271) 评论(0) 推荐(0)
摘要:Request a certificate from a certificate vendorNow, with your CSR in hand, visit the Web site of your favorite SSL certificate provider and buy your new certificate. During the registration process, you need to provide the certificate company with information validating you or your company's ide 阅读全文
posted @ 2013-11-22 10:53 一切都是幸福叻 阅读(485) 评论(0) 推荐(0)
摘要:How to generate a CSR in Microsoft IIS 7To help you generate your CSR for Microsoft IIS 7 we've prepared a video walkthrough and a text/screenshot walkthrough. If you'd like a tool to help you automatically install the certificate on any Windows machine you can download our DigiCertUtil. As 阅读全文
posted @ 2013-11-22 10:46 一切都是幸福叻 阅读(301) 评论(0) 推荐(0)
摘要://url:need to convert page's url//path:save converted pdf file to the server's pathpublic bool HtmlPageConvertToPDF(string url, string path) { bool flag = false; try { if (string.IsNullOrEmpty(url) || string.IsNullOrEmpty(path)) return false; ... 阅读全文
posted @ 2013-06-07 13:12 一切都是幸福叻 阅读(428) 评论(0) 推荐(0)
摘要:如何减少请求数?我们可以通过几个方法来减少网站的请求次数: 1.合并外部资源文件(比如:javascript,css,image...) a.图片的合并,指的是将多个图片合并为一张图片,然后采用css的一些设置(background-image,background-position)来使用他们,这个方法简单实用,效果显著。 b.javascript和css文件的合并,这次主要讲解这个方式。 2.实用Inline image方式。这种方式可能依赖于浏览器的实现,目前不是所有浏览器都支持。合并javascript文件和css文件:对于这两种文件的合并,我们当然可以手动去做(如:c... 阅读全文
posted @ 2013-05-20 11:41 一切都是幸福叻 阅读(641) 评论(0) 推荐(0)
摘要:先写一个继承了System.Web.UI.Page 的基类PageBase,在基类PageBase中定义一个PageTitle属性, 重写OnLoad方法让Title=PageTitle的值.为什么不在分类的产品列表页面的cs中直接override重写Page的Title方法呢?以为很遗憾的是Page的Title方法不是virtual的.PageBase.cs代码:using System;using System.Collections.Generic;using System.Linq;using System.Web;/// <summary>/// Summary desc 阅读全文
posted @ 2013-05-17 15:43 一切都是幸福叻 阅读(197) 评论(0) 推荐(0)
摘要:1:Maximum message size quota for incoming messages (65536) has been exceeded.已超过传入消息(65536)的最大消息大小配额。若要增加配额,请使用相应绑定元素上的 MaxReceivedMessageSize 属性。说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.ServiceModel.QuotaExceededException: 已超过传入消息(65536)的最大消息大小配额。若要增加配额,请使用相应绑定 阅读全文
posted @ 2013-03-18 13:48 一切都是幸福叻 阅读(284) 评论(0) 推荐(0)