.aspx
<%@ Page language="c#" Codebehind="frame.aspx.cs" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.ForumPage.frame" %>
<script runat="server">
override protected void OnInit(EventArgs e)
{
base.OnInit(e);
templateBuilder.Append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
templateBuilder.Append("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
templateBuilder.Append("<head>\r\n");
templateBuilder.Append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n");
templateBuilder.Append("" + meta.ToString() + "\r\n");
        ...... Response.Write(templateBuilder.ToString());
}
</script>.cs中:
 public class frame : BasePage
  {
  }疑问:.aspx中是templateBuilder.Append()这种形式的,为何这样做?在.cs中怎么不是public partial class这样的?