/
Default.aspx
28 lines (26 loc) · 967 Bytes
/
Default.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RoutingWithAttributes.Default" %>
<%@ Register Src="~/RouteDataValuesList.ascx" TagPrefix="uc" TagName="RouteDataValuesList" %>
<%@ Import Namespace="RoutingWithAttributes" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h1>Home</h1>
<ul>
<li>
<asp:HyperLink ID="hlFooEdit" runat="server" Text="Foo.List - HyperLink control"
NavigateUrl='<%# Page.GetMappedRouteUrl(typeof(RoutingWithAttributes.Foo.List), new { year = "2012" }) %>' />
</li>
<li>
<a href='<%= Page.GetMappedRouteUrl(typeof(RoutingWithAttributes.Foo.Edit), new { id = 1 }) %>'>Foo.Edit - anchor</a>
</li>
</ul>
<uc:RouteDataValuesList runat="server" id="RouteDataValuesList" />
</div>
</form>
</body>
</html>