![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ASP.NET
manbufenglin
技术兴趣:大数据技术、技术架构、JAVA、数据库开发,C#(Asp.NET)等;
展开
-
动态添加刷新功能
动态添加刷新功能: public void AddHtmlMeta() { HtmlMeta hm = new HtmlMeta(); hm.HttpEquiv = "refresh";//刷新 hm.Content = "5";//时间间隔5秒 hm.ID = "myhm";//hm的ID原创 2008-07-10 21:22:00 · 457 阅读 · 0 评论 -
使用自定义配置节,使配置项转化为字典集(.NET)
如何使用.NET的配置文件中的配置节,是配置项转化为字典集呢? 请做以下处理: 并进行如下编码即可: Var hashTable=(Hashtable) ConfigurationManager.GetSection("AdWordsApi"); 很简单,对吧?!呵呵呵。原创 2012-10-09 17:03:36 · 1060 阅读 · 0 评论 -
容易忽略但很有用的5种XHTML元素
http://www.codeproject.com/KB/HTML/FiveXhtmlElements.aspx Introduction With experience, working with ASP.NET, I noticed some important XHTML tags that are rarely used by web developers, even the exp转载 2011-12-14 16:11:52 · 591 阅读 · 0 评论 -
C#中格式化方法ToString("...")
C# double[] numbers= {1054.32179, -195489100.8377, 1.0437E21, -1.0573e-05}; string[] specifiers = { "C", "E", "e", "F", "G", "N", "P", "R", "#,000.000转载 2011-11-18 12:59:42 · 348 阅读 · 0 评论 -
WaitHandles 的数目必须少于或等于 64 个
1、用于同步 在多线程(并发)或异步运行的程序的时候,我们常会这样做:using System; using System.Threading; namespace ThreadPoolTest { class Program { private原创 2011-08-03 09:56:17 · 3258 阅读 · 0 评论 -
如何解决jQuery load方法加载文档时的中文乱码问题
如果用jQuery load方法加载的文档中包含中文字符,可能会引起乱码问题。要解决这个问题, 方法1:所加载的文档本身应当采用UTF-8格式编码。在记事本中,默认的是ANSI编码,通过另存可以更改编码格式。在DW中,通过设置首选参数,可以设置新文档使用UTF-8编码,文档本身也原创 2011-07-18 11:16:52 · 5741 阅读 · 0 评论 -
jquery 插件之分页控件
jquery,Pager,分页,无刷新分页,Asp.net原创 2011-07-07 18:48:17 · 568 阅读 · 0 评论 -
服务端检测你的浏览器(HttpBrowserCapabilities)
HttpBrowserCapabilities ,Request.Browser原创 2011-05-16 14:04:00 · 1992 阅读 · 0 评论 -
网页内容自动换行
网页内容自动换行在默认情况下网页是不自动换行的,如果字符很长的话,就会使网页变型,因为它是通过绝对长度来控制的,其实只要在表格控制中添加一句就OK完整的是 style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word" word-break:break-all mozilla等(包括firefox)不支持,将会在 css3 中实现。目前mozilla只能overflow-x:hidden 临时解决,或者作者在书写的时候避开这种转载 2010-12-03 17:36:00 · 1523 阅读 · 0 评论 -
SortDropDownList (用C# lamda表达式)
一、前台Aspx<br /><html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:DropDownList ID="cboNames" runat="server"> </asp:DropDownList>原创 2010-06-07 20:57:00 · 640 阅读 · 0 评论 -
ASp.net 生成页面,服务器控件对应html标签
Server controls Besides HTML elements, ASP.NET uses server controls which have similar definition to HTML elements. The important difference between the two is that, unlike HTML elements, server con转载 2009-12-19 18:49:00 · 1204 阅读 · 0 评论 -
自定义用户控件模板
1、在Controls文件夹下添加名为TemplatedUC用户控件,该用户控件创建一个可在宿主页上声明为 的模板。该模板控件还公开两个可由宿主页在模板内访问的属性:Index 和 Message。源代码如下: using System;using System.Collections;using System.Configuration;using System.Data;原创 2008-07-16 17:11:00 · 684 阅读 · 0 评论 -
wcf数据访问采用集成验证方式导致客户端调用失败的解决方案(IIS7寄宿wcf)
IIS7寄宿wcf,wcf中数据库访问连接字符串采用集成验证方式而导致客户端调用失败,如何解决? 数据库访问字符串采用集成验证方式:Integrated Security=true;此时,客户端调用wcf可能会提示“DomainName/ComputerName”登录失败的!就是说在服务在服务数据库时需要windows集成验证,而目前权限不足以使程序访问数据库。 我们可以从wcf寄宿的IIS7原创 2012-10-11 15:26:02 · 686 阅读 · 0 评论