2006-11-10

 

Asp.Net2.0 取得web.config 標籤內容

<%@ Import Namespace="System.Web.Configuration" %>

Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim c As System.Configuration.Configuration = WebConfigurationManager.OpenWebConfiguration("/所在目錄")
Dim pages As PagesSection = CType(c.GetSection("system.web/pages"), PagesSection)
Response.Write(pages.ElementInformation.Type.ToString())
End Sub

Comments: 張貼留言



<< Home

This page is powered by Blogger. Isn't yours?