skip to main |
skip to sidebar
Use Server.Mappath In Class File.
The first thing you must import namespace as below.
using System.Web;
And you can use them such as:
HttpContext.Current.Server.MapPath("myPath");
this function Server.MapPath() will return string result.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น