asp.net

asp.net,c#

2009年10月12日

存储过程跨系统跨数据库操作

摘要: 第一步建立一个远程连接 使用sql-server进行分布式查询(链接服务器) 可以使用sql-server企业管理器进行建立,注意其中的rpc及rpc out两项,也可以使用sql语句来完成定义,主要涉及到三个存储过程 sp_addlinkedserver,sp_serveroption和sp_addlinkedsrvlogin,以下是三个存储过程的语法: sp_addlinkedserver... 阅读全文

posted @ 2009-10-12 17:27 灵魂边缘 阅读(690) 评论(0) 推荐(0) 编辑
ASP.NET 2.0 中配合Master Page 使用CSS

摘要: ASP.NET 2.0 中增加了内建的 MasterPage 的支持,这对我们来说是一个很大的便利。然而经过一段时间的使用,我发现 MasterPage 并不是那么完美:嵌套的 MasterPage 不能支持设计时界面,以及下面要提到的Content Page 中增加 CSS 的问题。通常,在没有 2.0 之前,我们在页面里要增加一个 CSS 引用的语法如下:<linkrel="styles... 阅读全文

posted @ 2009-10-12 17:26 灵魂边缘 阅读(718) 评论(0) 推荐(0) 编辑
正则表达式全部符号解释

摘要: 字符 描述\ 将下一个字符标记为一个特殊字符、或一个原义字符、或一个 向后引用、或一个八进制转义符。例如,'n' 匹配字符 "n"。'\n' 匹配一个换行符。序列 '\\' 匹配 "\" 而 "\(" 则匹配 "("。^ 匹配输入字符串的开始位置。如果设置了 RegExp 对象的 Multiline 属性,^ 也匹配 '\n' 或 '\r' 之后的位置。$ 匹配输入字符串的结束位置。如果设置了Re... 阅读全文

posted @ 2009-10-12 17:25 灵魂边缘 阅读(197) 评论(0) 推荐(0) 编辑
[转]asp.net导出数据到Excel的三种方法

摘要: asp.net导出到Excel也是个老生常谈的问题,在此归纳一下。 第一种是比较常用的方法。是利用控件的RenderControl功能,得到该控件生成的HTML,然后以Excel文件的类型输出到客户端。这种方法生成的其实是个HTML文件,只不过Excel支持HTML格式,所以使用起来似乎和真正的Excel文件没什么两样,但它终究不是Excel格式,它不能当作数据源供其他程序调用。这种实现起来比较简... 阅读全文

posted @ 2009-10-12 17:20 灵魂边缘 阅读(393) 评论(0) 推荐(0) 编辑
ASP.NET:创建Linked ValidationSummary, 深入理解ASP.NET的Validation (转)

摘要: 一 、实现的效果 我想对于ASP.NET的Validator控件已经熟悉的不能再熟悉了。我们 已经习惯了用Validator控件来验证我们在表单的输入,并通过ValidationSummary来输出我们为Validator控件设置的Error message。不知道大家有没想过进一步改进一下我们的Validation来改善我们的User Experience。比如,在ValidationSumma... 阅读全文

posted @ 2009-10-12 17:18 灵魂边缘 阅读(352) 评论(0) 推荐(0) 编辑
Setting the default Button for a TextBox in ASP.NET

摘要: Hitting the enterkey in aTextBox can sometimes haveundesired effects like the wrong submit Button being “clicked“. The method described below allows you to specify a default Button tosubmi... 阅读全文

posted @ 2009-10-12 17:15 灵魂边缘 阅读(233) 评论(0) 推荐(0) 编辑
关于弹出模态窗口的缓存问题

摘要: 弹出模太窗口时,用<base target="_self">来控制窗体的大小,弹出模态窗口时,会有缓存存在,解决办法: 在<head></head>中加入<meta http-equiv="pragma" content="no-cache"> 阅读全文

posted @ 2009-10-12 10:12 灵魂边缘 阅读(659) 评论(0) 推荐(0) 编辑

2009年9月29日

GridView Tips and Tricks using ASP.NET – Part III

摘要: The GridView control is quiet a handy control and is the most commonly used control when building an ASP.NET site. The more you work with it, the more you realize how powerful it can be while presenti... 阅读全文

posted @ 2009-09-29 16:20 灵魂边缘 阅读(247) 评论(0) 推荐(0) 编辑
GridView Tips and Tricks using ASP.NET - Part II

摘要: The GridView control is quiet a handy control and is the most commonly used control when building an ASP.NET site. The more you work with it, the more you realize how powerful it can be while presenti... 阅读全文

posted @ 2009-09-29 16:19 灵魂边缘 阅读(493) 评论(0) 推荐(0) 编辑
GridView Tips and Tricks using ASP.NET 2.0 I

摘要: The GridView control is quiet a handy control and is the most commonly used control when building an ASP.NET site. The more you work with it, the more you realize how powerful it can be while presenti... 阅读全文

posted @ 2009-09-29 16:18 灵魂边缘 阅读(233) 评论(0) 推荐(0) 编辑
网站加速技巧大全

摘要: 困扰许多网站所有者很久的一个问题是网站访问速度总是那么慢。想购买独立带宽,预算不允许,想购买CDN加速,价格又太贵。那有没有经济实惠的解决办法呢?从目前的大环境来分析,我们也只有通过技术手段来解决这个问题了。对Web开发有着深刻理解的著名搜索引擎厂商Google前段时间发布了一款Firefox /Firebug插件Page Speed(为什么是Firefox 而不是Chrome?),并已开源,网络... 阅读全文

posted @ 2009-09-29 16:13 灵魂边缘 阅读(376) 评论(0) 推荐(0) 编辑
一些网站加速工具

摘要: Page Speed(网页加速工具):这是一个开源的Firefox/Firebug插件。网站管理人员和Web开发人员可以使用网页加速工具估算自己网页的性能,并得到如何优化这些网页的建议。AOL Page Test(AOL网页测试):这是一个用来测量和分析使用IE时网页性能的开源工具。Cuzillion:该工具能够快速构建网页,并发现组件如何交互。每天,浏览器都会有各种无法预料的行为,有时因为浏览器... 阅读全文

posted @ 2009-09-29 16:10 灵魂边缘 阅读(615) 评论(0) 推荐(0) 编辑
how to use mstsclib

摘要: use AxImp /source c:\windows\system32\MSTSC.dll to generate the source code of AxMSTSCLib.dll(AxMSTSCLib.cs), then you can include it in your project, thus you do not need AxMSTSCLib.dll.what's more, ... 阅读全文

posted @ 2009-09-29 16:03 灵魂边缘 阅读(750) 评论(0) 推荐(0) 编辑
JavaScript去除空格的几种方法 (trim)

摘要: 其实这些方法也都大同小异方法一:String.prototype.trim= function() { // 用正则表达式将前后空格 // 用空字符串替代。 return this.replace(/(^\s*)|(\s*$)/g, ""); }方法二:functiontrim(str){ for(vari=0;i<str.length&&str.charAt(i)==... 阅读全文

posted @ 2009-09-29 15:57 灵魂边缘 阅读(393) 评论(0) 推荐(0) 编辑
Selective Form Validation Using ASP.NET Validation Controls

摘要: ASP.Net comes in with a set of validation controls that automatically validate the data entered by a user. Though this validation controls are very powerful and easy to use, they have a small draw bac... 阅读全文

posted @ 2009-09-29 09:48 灵魂边缘 阅读(269) 评论(0) 推荐(0) 编辑