in

SDT Community Server

SDT Forums, Blogs, Photos server.
All Tags » Asp.net (RSS)

Browse by Tags

  • showModalDialog下载文件问题

    http://hi.baidu.com/zangchunlai/blog/item/3007f419bcb26670dbb4bd6f.html showDialog里好像不能用href,只能用onclick 最近在项目中经常用到模态窗口(showModalDialog),客户需要在一个模态窗口中有"生成Excel报表"并"导出"的功能。接到任务后,直接就开始按常规操作实现。 在按钮的Click事件中,根据模板生成Excel报表,填充数据,保存到临时文件夹,然后用Response.WriteFile函数输出文件,一切看上去都很顺利。代码如下: //根据数据集创建Excel报表并返回Excel报表路径...
    Posted to Floating Heart (Weblog) by wicky on 07-15-2010
  • ASP.NET发布网站解决方案deploy

    发布网站的时候有三个选项,很多人都不知道到底是怎么用的,简单说说: 对于想了解发布网站那些选项的人来说这个文章是不错的,当然这个文章不是我写的。 第一个选项指定发布后是不是可以修改aspx文件,如果勾选,则发布后的网站行为基本与ASP.NET 1.1一致,只要没有增删修改控件,可以直接在服务器上修改aspx文件不用重新发布网站。 第二个选项指定是不是将每个aspx文件都编译成一个DLL文件,这样,就可以在修改了哪个aspx网页(包括aspx和cs文件),只需要更新一个DLL文件就行了,不用整站全部更新。 1.允许更新此预编辑站点 选中这一项后,编译出来的包括aspx文件和dll,与2003下一样...
    Posted to slash (Weblog) by slash on 06-07-2010
  • ASP.NET MVC 2 Released

    http://weblogs.asp.net/scottgu/archive/2010/03/11/asp-net-mvc-2-released.aspx I’m happy to announce that the final release of ASP.NET MVC 2 is now available for VS 2008/Visual Web Developer 2008 Express with ASP.NET 3.5. You can download and install it from the following locations: Download ASP.NET MVC...
    Posted to Floating Heart (Weblog) by wicky on 03-15-2010
  • ASP.NET的Session会导致的性能问题

    http://www.cnblogs.com/sumtec/archive/2009/07/10/1520216.html 你的站点有被客户投诉很慢吗?是不是查了很多遍还是没有完全解决?是不是数据库没有发现异常,CPU也没有异常,内存占用量没有异常,GC计数没有异常,硬盘IO也没有异常,带宽没有异常,线路没有异常,没有丢包,但就是被投诉?而且还是阵发性的,有某个用户投诉慢的时候,你访问却很快,本地又复现不出来?今天你访问了博客园真是太幸运了,也许这里就有你想要的一个答案——假如你的站点动态处理了图片或者其他原本不会动态处理的非网页资源的话。没想到吧,这是Session惹的祸! 我们公司某个站点访问量一直很大...
    Posted to Floating Heart (Weblog) by wicky on 02-05-2010
  • BASE64编码作为QueryString时要注意的问题

    加号(+)是BASE64编码的一部分,而加号在QueryString中被当成是空格。 因此,当一个含有BASE64编码的字符串直接作为URL的一部分时,如果其中含有加号,则使用QueryString读取时,再使用BASE64解码就会发生错误。 解决的办法有两个: 一是使用BASE64的字符串作为URL的一部分是,使用UrlEncode一类的函数进行编码; 二是在接收BASE64字符串后,使用Replace将字符串中的空格替换成加号,然后再解码。
    Posted to Floating Heart (Weblog) by wicky on 01-19-2010
  • Configuring Kerberos Delegation

    http://dunnry.com/blog/ConfiguringKerberosDelegation.aspx One of the challenges to using something like System.DirectoryServices with web apps is managing the security context. By default, your web application runs with the security context of a local account (often ASPNET or NETWORK SERVICE). Those...
    Posted to Floating Heart (Weblog) by wicky on 11-06-2009
  • ASP.NET Menu, Click instead of Hover

    Saturday, September 20, 2008 ASP.NET Menu, Click instead of Hover http://msd-bml.blogspot.com/2008/09/aspnet-menu-click-instead-of-hover.html This treat is for those that really hate how the ASP.NET Menu works. The menu shows the sub-menu when the user hovers the mouse over the root level menu items...
    Posted to Floating Heart (Weblog) by wicky on 08-21-2009
  • SmtpClient 设置

    我们经常用SmtpClient发送Email,但是可能没有留意到它能自动读取配置文件,不需要自己去搞。 比如: < system.net > < mailSettings > < smtp from = " test@foo.com " deliveryMethod="Network" > < network host = " smtpserver1 " port = " 25 " userName = " username " password = "...
    Posted to Floating Heart (Weblog) by wicky on 07-27-2009
  • 免费开源的asp.net,即时通讯控件与大家分享,即时聊天,即时通讯,在线客服,在线咨询,聊天室,开源,IM,免费,控件,在线聊天

    http://www.cnblogs.com/powertalkbox/archive/2009/05/31/1492826.html 这是一款免费开源的控件,作者的初衷是为了让来到网站上的人流资源更好的被把握住. 传统方式的弊端: 1,靠网站联系方式:有时来客会考虑到电话费的问题,如果长途的话,就会更使其考虑是否需要联系了. 2,QQ/MSN等在线客服,如果客户电脑并没有安装QQ或受到病毒干扰,或本身就没有QQ号,会使这类人群错过. 3,使用其他网站的收费IM系统,如果其他网站的IM连接字符串形式,会收到其他网站的带宽,流量,等不稳定因素干扰,并且每年的服务费用并不低. PowerTalk控件的好处...
    Posted to Floating Heart (Weblog) by wicky on 06-01-2009
  • Configuration system failed to initialize

    http://www.distribucon.com/blog/ConfigurationSystemFailedToInitialize.aspx If you've come across this error when starting up an application, be sure to check the format of your app.config file. It turns out that this exception is of the type System.Configuration.ConfigurationErrorsException . The...
    Posted to Floating Heart (Weblog) by wicky on 05-27-2009
Page 1 of 68 (679 items) 1 2 3 4 5 Next > ... Last »
Copyright SDT, 2006-2009. All rights reserved.