Accessing configuration files programatically CodeSample - Using VWGContext
From Visual WebGui Wiki
| This article will have a few sections added to it soon, based on the following article type skeleton: NewCodeSampleTemplate |
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");
