![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Asp.Net
文章平均质量分 71
cattei
这个作者很懒,什么都没留下…
展开
-
.net + html 同意注册
.net 功能十分强大,其实可以直接在里面写一些html的代码,比如像这样This is ABC web onclick="ValidateTandCs" /> 这种可以用于注册时的超链接到别的地方,当然可以发挥想像,所有Text都可以这么用。 ClientValidationFunction="ValidateT原创 2010-01-17 21:24:00 · 168 阅读 · 0 评论 -
about use javascrip change button image
function ValidateTandCs(source, args) { } function disableBtn(btnID, newText) { if (Page_IsValid == true) { var btn = document.getElementById(转载 2010-02-04 17:17:00 · 220 阅读 · 0 评论 -
《博客园精华集》ASP.NET分册第2论筛选结果文章列表
http://www.cnblogs.com/dflying/archive/2008/06/13/1219896.html转载 2010-02-03 17:47:00 · 172 阅读 · 0 评论 -
A Templated ASP.NET RSS Feed Reader Control (开发模板化的ASP.NET RSS Feed Reader控件)
By popular demand (well a couple people) I have included a sample project with everything needed to get started using this control. Basically just a sample web project, click here to get the zipped ar转载 2010-02-03 16:57:00 · 465 阅读 · 0 评论 -
ASP.NET Ajax using a custom ViewManager to render paged data without updatepanels (在ASP.NET AJAX中使用自定义ViewManager局部更新数据)
Sometimes you do not want the overhead of using an updatepanel, as each time you make a request it is posting more back than you might need, sure it can be powerful and easy to use but not always the转载 2010-02-03 17:16:00 · 274 阅读 · 0 评论 -
ASP.NET中将数据输出到Excel
在开发ISO文件管理系统的时候,曾经遇到过要将ASPX直接输出到EXCEL的需求,现将经验所得与大家分享。 其实,利用ASP.NET输出指定内容的WORD、EXCEL、TXT、HTM等类型的文档很容易的。主要分为三步来完成。 一、定义文档类型、字符编码 Response.Clear(); Response.Buffer= true; Response.Charset="utf-8"; //转载 2010-02-03 17:44:00 · 145 阅读 · 0 评论 -
ASP.NET MVC ACTION FILTER - CACHING AND COMPRESSION
http://weblogs.asp.net/rashid/archive/2008/03/28/asp-net-mvc-action-filter-caching-and-compression.aspx Caching plays a major role in developing highly scalable web applications. We can cache转载 2010-02-04 10:41:00 · 283 阅读 · 0 评论 -
ASP.NET Web Developer Checklist
The following is a simple checklist you can use when building web applications. Much of this still applies to other technologies and can easily be extended. I try not to get too spe转载 2010-02-25 10:04:00 · 361 阅读 · 0 评论 -
Refresh or redirect
先看看ASP.NET页面刷新的实现方法: public static void Refresh() { WriteScript("window.location=/"" + HttpContext.Current.Request.RawUrl + "/";"); if (null != HttpCont转载 2010-02-25 10:30:00 · 815 阅读 · 0 评论 -
asp.net 也玩微操:long?
今天发现一个很有用的东西:“?” 比如long? number与long inc比在DAC Lever当number收到字母等不合意的东西时,会自动地变成null存到数据库,而这时inc收到不合理数据,会出错!原创 2010-03-04 12:53:00 · 164 阅读 · 0 评论 -
"Stack overflow in line 0" errors when I look at it in Internet Explorer.
I had an OnError() event in some code that was setting the image source to a default image path if it wasnt found. Of course, if the default image path wasnt found it would trigger the error handl原创 2010-04-14 11:35:00 · 293 阅读 · 0 评论 -
Building a Simple Blog Engine with ASP.NET MVC and LINQ - Part 3
http://aspalliance.com/1604_Building_a_Simple_Blog_Engine_with_ASPNET_MVC_and_LINQ__Part_3.all转载 2010-02-03 17:15:00 · 169 阅读 · 0 评论 -
FileUpload filter
When we need to <a id="KonaLink0" class="kLink" style="position: static; text-decoration: underline !important;" onclick="function onclick(){adlinkMouseClick(event,this,0);}" onmouseov原创 2010-02-03 14:25:00 · 321 阅读 · 0 评论 -
.net用url重写URLReWriter实现任意二级域名
解释了url重写的相关知识.用asp.net实现二级域名重写的方法.对重写的一些问题做了汇总解答.提供了几段示例代码.好久没有写技术文章,如果大家看不明白,就多看几篇,汗,或者,在文章的后面回复(这是最有效的办法),我会尽力帮助大家解答疑惑.来找这篇文章的,应该都知道什么叫二级域名吧,废话就不说了.但是讨论前,先要明白一个思想问题.很多朋友一直考虑不清(我前几天也一直搞不明白)转载 2010-01-25 17:36:00 · 124 阅读 · 0 评论 -
System.Threading
pub void function_thread{ Thread UserCreateThread = new Thread(new ParameterizedThreadStart(function_name)); string[] temp = { createnumber.ToString(), GroupName, gparentid.T原创 2010-01-27 18:49:00 · 179 阅读 · 0 评论 -
ASP.NET 2.0 二级域名Forms验证模式下共享登陆状态
在asp.net 1.1中, 二级域名Forms验证模式下共享登陆状态的方法请参考下面文章:http://www.cnblogs.com/caomao/archive/2005/07/05/186606.html而在asp.net 2.0中实现方法更为简单,只需修改web.config文件即可,修改方法如下:Code highlighting produced by Actipro CodeH转载 2010-01-25 17:13:00 · 365 阅读 · 0 评论 -
ASP.NET二级域名站点共享Session状态
ASP.NET二级域名站点共享Session状态2010-01-15 10:44我的前面一篇文章提到了如何在使用了ASP.NET form authentication的二级站点之间共享登陆状态,http://www.cnblogs.com/jzywh/archive/2007/09/23/902905.html,今天, 我要写的是如何转载 2010-01-25 17:16:00 · 148 阅读 · 0 评论 -
在Forms验证模式下,实现多个站点(SubDomain相同)共享同一用户登录状态
今天一早看了dudu关于二级域名Cookie的问题及解决方法,认为dudu的原理解释不是十分明确,不能确定dudu的代码FormsAuthentication.SetAuthCookie后添加下属代码HttpCookie cookie = Request.Cookies[".DottextCookie"]; if(cookie!=null) { cookie.Domain = ".cnblogs.转载 2010-01-25 17:17:00 · 179 阅读 · 0 评论 -
Asp.net 中session存储的三种模式的具体运用
在Asp.net中Session的存储方式不象asp那样单一,一共提供了三种存储方式,由于最近一个2000多人使用的web软件出现了故障,用户每天早上在某一时刻出现难以登陆现象,接着Session丢值出现,只有重启IIS,或机器.这时程序恢复正常了.整天都不会出现同样的问题,但是第二天依旧!这种现象持续了好几天,我检查了一下日志文件,高峰每秒访问人数大概20人左右,同时大概100多人在线,转载 2010-01-25 17:27:00 · 132 阅读 · 0 评论 -
.net 实现 URL重写,伪静态
一,获得Mircosoft URLRewriter.dll:获得Mircosoft URLRewriter.dll可以到http://www.microsoft.com/china/msdn/library/webservices/asp.net/URLRewriting.mspx?mfr=true 下载完毕后,导入工程,我这里没有对该工程做任何修改,保留了原来的重写方式,然原创 2010-01-25 17:38:00 · 149 阅读 · 0 评论 -
10 Tips to Boost Your Productivity with C# and Visual Studio 2008
Learn Key BindingsIts an obvious and trivial thing, but the timesaving will add up, especially for those actions you perform tens or hundreds of times a day such as building and debugging. Her转载 2010-01-27 11:28:00 · 233 阅读 · 0 评论 -
C# and VB .NET Libraries to Digg, Flickr, Facebook, YouTube, Twitter, Live Services, Google and other Web 2.0 APIs (调用Digg、Flick
Someone emailed me recently saying that they couldn’t find enough examples in .NET for talking to the recent proliferation of “Web 2.0 APIs” so I thought I’d put together a list and look at some sou转载 2010-01-27 11:30:00 · 1261 阅读 · 1 评论 -
IIS 6.0配置HTTP压缩
1. HTTP压缩概述 HTTP压缩是在Web服务器和浏览器间传输压缩文本内容的方法。HTTP压缩采用通用的压缩算法如gzip等压缩HTML、JavaScript或CSS文件。 2. HTTP压缩工作原理 Web服务器处理HTTP压缩的工作原理如下: Web服务器接收到浏览器的HTTP请求后,检查浏览器是否支持HTTP压缩; 如果浏览器支持HTTP压缩,Web服务器检查请求文件的后缀名;转载 2010-02-03 14:06:00 · 872 阅读 · 0 评论 -
system.Web.UI.Page.Server.get 要求引用解决方法
代码是判断是否支持一些服务器组件 如下 public static string IsObject(string ObjectName) { try { Server.CreateObject(ObjectName); return "√"; } catch (Exception转载 2010-04-15 19:11:00 · 520 阅读 · 0 评论