📄 filedependency.aspx
字号:
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Data" %>
<script language="C#" runat=server>
string strBgcolor;
string strFontface;
string strFontsize;
void Page_Load(Object sender , EventArgs e)
{
DataRow drowFormat;
DataSet dstFormat = (DataSet)(Cache[ "FormatInfo" ]);
if ( dstFormat == null )
{
dstFormat = GetFormatInfo();
Cache.Insert( "FormatInfo", dstFormat, new CacheDependency( MapPath( "FormatInfo.xml" ) ) );
}
drowFormat = dstFormat.Tables[ 0 ].Rows[0];
strBgcolor = drowFormat["bgcolor"].ToString();
strFontface = drowFormat[ "fontface" ].ToString();
strFontsize = drowFormat[ "fontsize" ].ToString();
}
DataSet GetFormatInfo()
{
DataSet dstFormat;
dstFormat = new DataSet();
dstFormat.ReadXml( MapPath( "FormatInfo.xml" ) );
return dstFormat;
}
</Script>
<html>
<head>
<basefont
size="<%=strFontsize%>"
face="<%=strFontface%>">
<title>FileDependency.aspx</title>
</head>
<body bgcolor="<%=strBgcolor%>">
Hello, welcome to our Web site!
<BR>
<small>Page Generated: <%=System.DateTime.Now%></small>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -