配置文件web.config
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="PictureURL" value="C:/SavePicture"/>
</appSettings>
定义全局变量的类
public class Helper
{
public static string ConstURL ;
static Helper()
{
ConstURL =ConfigurationManager.AppSettings["PictureURL"];
}
}