ASP.NET Web Pages - 类
StringExtensions 类 - 方法
| 方法 | 描述 |
|---|---|
| As<TValue>(String) | 类型值。 |
| As<TValue>(String, TValue) | 值。 |
| AsBool(String) | (true/false)。 |
| AsBool(String, Boolean) | (true/false)认值。 |
| AsDateTime(String) | 换为 DateTime 值。 |
| AsDateTime(String, DateTime) | 换为 DateTime 默认值。 |
| AsDecimal(String) | 换为 Decimal 数字。 |
| AsDecimal(String, Decimal) | 换为 Decimal |
| AsFloat(String) | 换为 Single 数字。 |
| AsFloat(String, Single) | 换为 Single |
| AsInt(String) | |
| AsInt(String, Int32) | 值。 |
| Is<TValue> | |
| IsBool | 换为 Boolean (true/false) 类型。 |
| IsDateTime | 换为 DateTime 类型。 |
| IsDecimal | 换为 Decimal 类型。 |
| IsEmpty | 值是否为 nullptr 或空。 |
| IsFloat | 换为 Single 类型。 |
| IsInt |
WebPageBase 类 - 属性
| 属性 | 描述 |
|---|---|
| Layout | 径。 |
| Output | 前的 TextWriter 对象。 |
| OutputStack | 上下文的 TextWriter 。 |
| Page | 访问。 |
| PageData | 访问。 |
WebPageBase 类 - 方法
| 方法 | 描述 |
|---|---|
| ConfigurePage | 。 |
| CreateInstanceFromVirtualPath | 建 WebPageBase 。 |
| DefineSection | 分。 |
| GetOutputWriter | 例。 |
| InitializePage | 页。 |
| IsSectionDefined | 部分。 |
| PopContext | 从 OutputStack 下文。 |
| PushContext | 在 OutputStack 下文。 |
| RenderBody | 部分。 |
| RenderPage | 的内容。 |
| RenderSection | 容。 |
| Write | 的 HTML 写入。 |
| WriteLiteral | 行 HTML |
| 属性 | 描述 |
|---|---|
| Request.Cookies[key] | HTTP cookie 的值。 |
| Request.Files[key] | 的文件。 |
| Request.Form[key] | 以 POST 。 |
| Request.QueryString[key] | 获取 HTTP |
| Request.Unvalidated(key) | 符串值、cookie 。 |
| Response.AddHeader() | 将 HTTP 出流。 |
| Response.OutputCache() | 配置 HTTP |
| Response.Redirect(path) | URL。 |
| Response.SetStatus(StatusCode) | 设置 HTTP 响应的 HTTP |
| Response.WriteBinary() | 将指定 MIME 到 HTTP 。 |
| Response.WriteFile(file) | HTTP 。 |
| @section(sectionName) | 分。 |
| Server.HtmlDecode(htmlText) | 对进行过 HTML 。 |
| Server.HtmlEncode(text) | 行 HTML 编码。 |
| Server.MapPath(virtualPath) | 径。 |
| Server.UrlDecode(urlText) | URL |
| Server.UrlEncode(text) | URL可靠的HTTP传输。 |
| Session[key] | 为止。 |
| ToString() | 表示。 |
| UrlData[index] | 获取与 URL 数据。 |