HtmlHelper Class
From HD.Common
| HtmlHelper Class | Helper帮助文档 |
Html操作相关类
Inheritance Hierarchy
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class HtmlHelper
Public Class HtmlHelper
public ref class HtmlHelper
type HtmlHelper = class end
The HtmlHelper type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| HtmlHelper | Initializes a new instance of the HtmlHelper class |
Methods
| Name | Description | |
|---|---|---|
| alert |
弹出警告信息并跳转到指定页面地址
| |
| CSS |
加载CSS样式文件
| |
| Decode |
解码得到url值
| |
| DelHtml |
过滤指定HTML标签
| |
| DelHtmlCode |
删除文本中带的HTML标记
| |
| DoJsFunction |
执行js命令
| |
| Encode |
编码传入url
| |
| Equals | (Inherited from Object.) | |
| erro |
弹出信息 无跳转动作
| |
| File |
加载文件块
| |
| Finalize | (Inherited from Object.) | |
| Get_Http |
以GET方式抓取远程页面内容
| |
| GetHashCode | (Inherited from Object.) | |
| GetHref |
获取页面的链接正则
| |
| GetHtml(String, CookieContainer) |
获取HTML
| |
| GetHtml(String, String, Boolean, CookieContainer) |
获取HTML
| |
| GetImg |
匹配 | |
| GetImgSrc |
匹配页面的图片地址
| |
| GetStream | ||
| GetType | (Inherited from Object.) | |
| goback |
后退一页
| |
| IsEmpty |
判断输入是否为空 并弹出错误信息
| |
| JS |
加载javascript脚本文件
| |
| MemberwiseClone | (Inherited from Object.) | |
| NoHTML |
清除HTML标记
| |
| Post_Http |
以POST方式抓取远程页面内容
| |
| ToString | (Inherited from Object.) | |
| ZipHtml |
压缩HTML输出
|
Properties
| Name | Description | |
|---|---|---|
| CookieContainer |
Cookie
| |
| Encoding |
语言
| |
| MaxTry | ||
| NetworkDelay |
See Also