必须填写至少10个字的日志
nnhy 编写于 2012-07-27 18:48:21
X
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="foo.aspx.cs" Inherits="foo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <div>
    <asp:PlaceHolder runat="server" ID="ph1" Visible="false">
    <#="<p style='font-weight:bold;color:#f00;padding:3em;border:1px solid #f00;'>如果能看到这段文字表示是有模版引擎处理的,而不是asp.net的引擎,应该在路由规则中将当前页的路由规则注释</p>"#>
    </asp:PlaceHolder>        
        <p>
            <h4>控制器和控制器工厂测试</h4>
            <a href="Test">/Test TestController</a>
            <a href="Test1">/Test1$ TestController1</a>
            <a href="Test1Foo">/Test1Foo TestController</a>
            <a href="Test2">/Test2 TestController2</a>
            <a href="Factory1">/Factory1 TestFactory</a>
            <a href="Error">/Error TestError</a>
            <a href="bar">/Bar 404</a>
        </p>
        <p>
            <h4>模块测试</h4>
            <a href="Module/fooFoo">/Module/fooFoo TestController</a>
            <a href="Module/foo">/Module/foo$ TestController</a>
            <a href="Module/f1">/Module/f TestFactory</a>
            <a href="Module/foo2Foo">/Module/foo2 TestController</a>
            <a href="Module/bar">bar 404</a>
        </p>
        <p>
            <h4>特殊控制器测试</h4>
            <p>
                需要在host中有<code>127.0.0.1    test.localhost</code>
            </p>
            <a href="<%= specUrl %>/specFactory/foo">/foo$ TestModuleRoute TestController</a>
            <a href="<%= specUrl %>/specFactory/foo123">/foo TestModuleRoute TestController</a>
            <a href="<%= specUrl %>/specFactory/f123">/f TestModuleRoute TestController</a>
            <a href="<%= specUrl %>/specFactory/foo2">/foo2 TestModuleRoute TestController</a>
            <a href="<%= specUrl %>/specFactory/notfound">404</a>
        </p>
        <p>
            <h4>忽略路由请求测试</h4>
            <a href="static/">static目录</a>
            <a href="static/TextFile.txt">文本文件</a>
        </p>
        <p>
            <h4>重定向测试</h4>
            <a href="Module/redirect1">至模块/foo</a>
            <a href="Module/redirect2">至应用~/static.bmp</a>
            <a href="Module/redirect3">至网站/</a>
            <a href="Module/redirect4">至绝对地址www.google.com</a>
            <a href="rootredirect">rootredirect至顶级模块/Test</a>
        </p>
        <p>
            <h4>静态资源请求</h4>
            <a href="static.bmp">图片</a> <a href="static/TextFile.txt">文本文件</a>
        </p>
        <p>
            <h4>外链请求测试</h4>
            <img src="static.bmp" />
        </p>
    </div>
</body>
</html>