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

 

相关文章:

  • 2021-11-18
  • 2021-05-09
  • 2021-05-26
  • 2021-04-29
  • 2021-07-21
  • 2021-04-25
猜你喜欢
  • 2021-12-04
  • 2022-12-23
  • 2021-05-04
  • 2022-12-23
  • 2022-02-01
  • 2022-03-03
  • 2022-12-23
相关资源
相似解决方案