易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net实现伪静态

其实所谓的伪静态页面,就是指的URL重写,在ASP.NET中实现非常简单
首先你要在你的项目里引用两个DLL:
                ActionlessForm.dll
                URLRewriter.dll
   真正实现重写的是 URLRewriter.dll   但是如果你要实现分页,那么必须使用这个ActionlessForm .dll
首先在web.config里写
<configSections>
       <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
</configSections>
<httpModules>
       <add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter" />
</httpModules>
<!-- 下面是配置重写URL规则 -->
<RewriterConfig>
       <Rules>
         <RewriterRule>
           <LookFor>~/Products/Jurisdiction_(\w{3})\.aspx</LookFor>
           <SendTo>~/En/Jurisdiction.aspx?jurid=$1</SendTo>
         </RewriterRule>
         <RewriterRule>
           <LookFor>~/Articles/(\d{1,})\.aspx</LookFor>      <!-- 这个是被代替后的文件名,使用到正则表达式 -->
           <SendTo><![CDATA[~/En/Article_view.aspx?article_id=$1]]></SendTo>      <!-- 这个是要给代替的网页,一般是带有问号后面带参数的网页 -->
         </RewriterRule>
         <RewriterRule>
&nbs


相关文档:

将jQuery应用于Asp.net Ajax时,应避免的3个错误

3 mistakes to avoid when using jQuery with ASP.NET AJAX
AJAX, ASP.NET, JavaScript, jQuery By Dave Ward on June 5th, 2008
Over the past few weeks, I think I have definitely embodied Jeff Atwood’s claim that we’re all amateurs, learning together. Despite my best efforts to thoroughly tes ......

asp.net 在前台和后台调用 javascript 函数

1、直接在前台调用 javascript 函数
很简单,在 head 元素之间加入 script 元素,将 type 元素设置为 " text/javascript "
如:
<head runat="server">
<mce:script type="text/javascript" ><!--
function ShowName(str)
{
alert("您的名字为:("+str+")");
}
// --></mce:script>
< ......

Window 2003+iis 6.0 配置asp.net 步骤

新手,上网GOOGLE了半天,也没发现一个最简单的解决方案,各网站都是在抄来抄去。
刚刚配置了一台新的asp.net的网站,写一下方式,给自己做个总结。
1.安装iis 6.0,就用windows 2003 自带光盘就可以。
2.打开iis, 选择网站->新建-> 网站,然后选择目录啊,起名啊什么的,很正常的步骤。注意把脚本资源那个给选中 ......

ASP.NET 清除 HTML 标记函数

using System.Text.RegularExpressions;   //引入的命名空间
以下为引用的内容:
//清除HTML函数
    public static string NoHTML(string Htmlstring)
    {
        //删除脚本
        Htmlstr ......

如何学习ASP.NET

如果你已经有较多的面向对象开发经验,跳过以下这两步:
第一步 掌握一门.NET面向对象语言,C#或VB.NET。
我强烈反对在没系统学过一门面向对象语言的前提下去学ASP.NET。
ASP.NET是一个全面向对象的技术,不懂面向对象,那绝对学不下去!
第二步 对.NET Framework类库有一定的了解
可以通过开发Windows Form应用 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号