2006-11-10
Asp.Net2.0 自訂義WebCofig標籤
1.加入到web.config
2.呼叫
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim settings As Hashtable = CType(ConfigurationManager.GetSection("customerService"), Hashtable)
Response.Write(settings("email"))
End Sub
2.呼叫
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim settings As Hashtable = CType(ConfigurationManager.GetSection("customerService"), Hashtable)
Response.Write(settings("email"))
End Sub