Accessing configuration files programatically CodeSample - Using VWGContext

From Visual WebGui Wiki

Jump to: navigation, search


Overview

This codesample shows how you can use VWGContext to read configuration data from the <WebGUI> section of web.config.

VB.NET Code

VWGContext.Current.Context.Config.GetFeatureValue("Extension",".wgx")
VWGContext.Current.Context.Config.GetFeatureValue("SilverlightExtension", ".swgx")

C# Code

VWGContext.Current.Context.Config.GetFeatureValue("Extension",".wgx");
VWGContext.Current.Context.Config.GetFeatureValue("SilverlightExtension", ".swgx");
Personal tools