We Recommend

Beginning VB.NET Beginning VB.NET
Visual Basic .NET is the latest version of the most widely used programming language in the world, popular with professional developers and complete beginners alike. This book will teach you Visual Basic .NET from first principles. You'll quickly and easily learn how to write Visual Basic .NET code and create attractive windows and forms for the users of your applications.


Posted By

DaveChild on 09/11/08


Tagged

webconfig


Versions (?)


VB.NET Read Settings from web.config File


Published in: VB.NET 


  1. Public Class Settings
  2.  
  3. Private objSettings As AppSettingsSection
  4.  
  5. Public Sub New()
  6. objSettings = CType(WebConfigurationManager.OpenWebConfiguration(HttpContext.Current.Request.ApplicationPath).GetSection("appSettings"), AppSettingsSection)
  7. End Sub
  8.  
  9. End Class

Report this snippet 

You need to login to post a comment.