Interface IServer
- Namespace
- Dynamicweb.Environment
- Assembly
- Dynamicweb.Environment.dll
Interface IServer is an abstraction of HttpServerUtility.
Provides helper methods for processing Web requests.
public interface IServer
Methods
MapPath(string)
Returns the physical file path that corresponds to the specified virtual path on the Web Server
string MapPath(string path)
Parameters
pathstring- The virtual path to get the physical path for
Returns
- string
- Physical file path
UrlEncode(string)
URL-encodes a string and returns the encoded string
string UrlEncode(string url)
Parameters
urlstring- The text to url encode
Returns
- string
- An url encoded string