配置文件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"];
}
}

 

posted on 2016-12-01 16:29  xs~ing  阅读(944)  评论(0编辑  收藏  举报