<div>
<%
var html = "";
foreach (KeyValuePair<string, object> d in RouteData.Values)
{
html += d.Key + "=" + (d.Value ?? string.Empty) + "<br/>";
}
%>
<%=html %>
</div>
运行结果
controller=Home
action=Index