ASP.NET Tutorial/Development/ConfigurationSettings — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Версия 15:30, 26 мая 2010
Load configuration with ConfigurationSettings.GetConfig
<%@ Page Language="VB" %>
<%@ Import Namespace="System.Xml" %>
<script runat="server">
sub Page_Load(Sender as Object, e as EventArgs)
"retrieve information
dim i as integer
dim objLibrary as XmlTextReader = ConfigurationSettings.GetConfig("system.web/Library")
objLibrary.Close
end sub
</script>
<html><body>
<asp:Label id="lblLibrary" runat="server"/>
</body></html>
File: web.config
<configuration>
<system.web>
<Library file="c:\yourXML.xml" />
</system.web>
</configuration>