webform1.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="work005.WebForm1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Server对象的实例</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<ul>
<li>Server.MapPath(".")=<%= Server.MapPath(".") %></li>
<li><h1>ASP.NET内置对象</h1></li>
<li><%= Server.HtmlEncode("<h1>ASP.NET内置对象</h1>") %></li>
<li><a href="http://blog.csdn.net/modern358">虾米大王</a></li>
<li><%= Server.UrlEncode("<a href=\"http://blog.csdn.net/modern358\">虾米大王</a>") %></li>
</ul>
</div>
</form>
</body>
</html>