⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filedependency.aspx

📁 asp.net技术内幕的书配源码
💻 ASPX
字号:
<%@ Import Namespace="System.Data" %>
<Script Runat="Server">

Dim strBgcolor As String
Dim strFontface As String
Dim strFontsize As String

Sub Page_Load
  Dim dstFormat As DataSet
  Dim drowFormat As DataRow

  dstFormat = Cache( "FormatInfo" )
  If dstFormat Is Nothing Then
    dstFormat = GetFormatInfo()
    Cache.Insert( "FormatInfo", dstFormat, _
      New CacheDependency( MapPath( "FormatInfo.xml" ) ) )
  End If
  drowFormat = dstFormat.Tables( 0 ).Rows( 0 )
  strBgcolor = drowFormat( "bgcolor" ).Trim
  strFontface = drowFormat( "fontface" ).Trim
  strFontsize = drowFormat( "fontsize" ).Trim
End Sub

Function GetFormatInfo() As DataSet
  Dim dstFormat As DataSet

  dstFormat = New DataSet()
  dstFormat.ReadXML( MapPath( "FormatInfo.xml" ) )
  Return dstFormat
End Function

</Script>

<html>
<head>
<basefont
  size="<%=strFontsize%>"
  face="<%=strFontface%>">
<title>FileDependency.aspx</title>
</head>
<body bgcolor="<%=strBgcolor%>">

Hello, welcome to our Web site!

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -