ASP.NET 使用者資訊 Web.config 使用方法
Web.config |
<configuration> …… <appSettings> <add key="videourl" value="http://123.123.123.123:8888/video/" /> </appSettings> …… </configuration> |
WebForm1.aspx.cs |
player.Text = "\"" + ConfigurationManager.AppSettings["videourl"].ToString().Trim() + "55.wmv" + "\""; |