ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
# ASP.NET Web Pages - 更多帮助器 ## ASP.NET 帮助器 - 对象参考手册 ## Analytics 对象参考手册(Google) | Helper | 描述 | | --- | --- | | Analytics.GetGoogleHtml(_webPropertyId_) | 为指定的 ID 呈现 Google Analytics JavaScript 代码。 | | Analytics.GetStatCounterHtml(_project_, _security_) | 为指定的项目呈现 StatCounter Analytics JavaScript 代码。 | | Analytics.GetYahooHtml(_account_) | 为指定的账号呈现 Yahoo Analytics JavaScript 代码。 | ## Bing 对象参考手册 | Helper | 描述 | | --- | --- | | Bing.SearchBox(_[boxWidth]_) | 给 Bing 传递搜索。您可以设置 Bing.SiteUrl 和 Bing.SiteTitle 属性来设定站点搜索和搜索框的标题,通常是在 __AppStart_ 页面设置这些属性。 | | Bing.AdvancedSearchBox(_[, boxWidth] [, resultWidth] [, resultHeight] [, themeColor] [, locale]_) | 用可选的格式显示 Bing 搜索结果在页面上。您可以设置 Bing.SiteUrl 和 Bing.SiteTitle 属性来设定站点搜索和搜索框的标题,通常是在 __AppStart_ 页面设置这些属性。 | ## Chart 对象参考手册 | Helper | 描述 | | --- | --- | | Chart(_width_, _height [, template] [, templatePath]_) | 初始化图表。 | | Chart.AddLegend(_[title] [, name]_) | 给图表添加一个图例。 | | Chart.AddSeries(_[name] [, chartType] [, chartArea] [, axisLabel] [, legend] [, markerStep] [, xValue] [, xField] [, yValues] [, yFields] [, options])_ | 给图表添加一系列数据。 | ## Crypto 对象参考手册 | Helper | 描述 | | --- | --- | | Crypto.Hash(_string [, algorithm]_) Crypto.Hash(_bytes [, algorithm]_) | 返回指定数据的哈希。默认算法是 sha256。 | ## Facebook 对象参考手册 | Helper | 描述 | | --- | --- | | Facebook.LikeButton(_href [, buttonLayout] [, showFaces] [, width] [, height] [, action] [, font] [, colorScheme] [, refLabel]_) | 让 Facebook 用户连接到网页。 | ## FileUpload 对象参考手册 | Helper | 描述 | | --- | --- | | FileUpload.GetHtml(_[initialNumberOfFiles] [_, _allowMoreFilesToBeAdded] [_, _includeFormTag] [, addText] [_, _uploadText]_) | 为上传文件呈现 UI。 | ## GamerCard 对象参考手册 | Helper | 描述 | | --- | --- | | GamerCard.GetHtml(_gamerTag_) | 呈现指定的 Xbox gamer 标签。 | ## Gravatar 对象参考手册 | Helper | 描述 | | --- | --- | | Gravatar.GetHtml(_email [, imageSize] [, defaultImage] [, rating] [, imageExtension] [, attributes]_) | 为指定的电子邮件地址呈现 Gravatar 图像。 | ## Json 对象参考手册 | Helper | 描述 | | --- | --- | | Json.Encode(_object_) | 用 JavaScript Object Notation (JSON) 把数据对象转换为字符串。 | | Json.Decode(_string_) | 转换 JSON 编码的输入字符串为您指定的数据对象。 | ## LinkShare 对象参考手册 | Helper | 描述 | | --- | --- | | LinkShare.GetHtml(_pageTitle [, pageLinkBack] [, twitterUserName] [, additionalTweetText] [, linkSites]_) | 使用指定的标题和可选的 URL 呈现社会网络链接。 | ## ModelState 对象参考手册 | Helper | 描述 | | --- | --- | | ModelStateDictionary.AddError(_key_, _errorMessage_) | 关联错误信息和一个表单域。使用 ModelState 帮助器访问成员。 | | ModelStateDictionary.AddFormError(_errorMessage_) | 关联错误信息和一个表单。使用 ModelState 帮助器访问成员。 | | ModelStateDictionary.IsValid | 如果没有验证错误,返回 true。使用 ModelState 帮助器访问成员。 | ## ObjectInfo 对象参考手册 | Helper | 描述 | | --- | --- | | ObjectInfo.Print(_value [, depth] [, enumerationLength]_) | 呈现一个对象和所有子对象的属性和值。 | ## Recaptcha 对象参考手册 | Helper | 描述 | | --- | --- | | Recaptcha.GetHtml(_[, publicKey] [, theme] [, language] [, tabIndex]_) | 呈现 reCAPTCHA 验证测试。 | | ReCaptcha.PublicKey ReCaptcha.PrivateKey | 设置 reCAPTCHA 服务的公共和私有密钥。通常是在 __AppStart_ 页面设置这些属性。 | | ReCaptcha.Validate(_[, privateKey]_) | 返回 reCAPTCHA 测试结果。 | | ServerInfo.GetHtml() | Renders 呈现有关 ASP.NET Web Pages 的状态信息。 | ## Twitter 对象参考手册 | Helper | 描述 | | --- | --- | | Twitter.Profile(_twitterUserName_) | 为指定的用户呈现 Twitter 流。 | | Twitter.Search(_searchQuery_) | 为指定的搜索文本呈现 Twitter 流。 | ## Video 对象参考手册 | Helper | 描述 | | --- | --- | | Video.Flash(_filename [, width, height]_) | 为指定的文件呈现宽度和高度可选的 Flash 视频播放。 | | Video.MediaPlayer(_filename [, width, height]_) | 为指定的文件呈现宽度和高度可选 的 Windows Media 播放器。 | | Video.Silverlight(_filename_, _width_, _height_) | 为指定的 _.xap_ 文件呈现所需的宽度和高度 的 Silverlight 播放器。 | ## WebCache 对象参考手册 | Helper | 描述 | | --- | --- | | WebCache.Get(_key_) | 通过 _key_ 返回指定的对象,如果对象未找到则返回 null。 | | WebCache.Remove(_key_) | 通过 _key_ 从缓存中删除指定的对象。 | | WebCache.Set(_key_, _value [, minutesToCache] [, slidingExpiration]_) | 通过 _key_ 把 _value_ 放置到指定名称的缓存中。 | ## WebGrid 对象参考手册 | Helper | 描述 | | --- | --- | | WebGrid(_data_) | Creates a 使用查询数据创建一个新的 WebGrid 对象。 | | WebGrid.GetHtml() | Renders markup 显示数据在 HTML 表格中。 | | WebGrid.Pager() | 为 WebGrid 对象呈现一个页面。 | ## WebImage 对象参考手册 | Helper | 描述 | | --- | --- | | WebImage(_path_) | 从指定的路径加载一个图像。 | | WebImage.AddImagesWatermark(_image_) | 为指定图像加水印。 | | WebImage.AddTextWatermark(_text_) | 为图像添加指定文本。 | | WebImage.FlipHorizontal() WebImage.FlipVertical() | 水平/垂直翻转图像 | | WebImage.GetImageFromRequest() | 当图像被传送到一个文件上传页面时,加载图像。 | | WebImage.Resize(_width_, _height_) | 调整图像大小。 | | WebImage.RotateLeft() WebImage.RotateRight() | 向左或向右旋转图像。 | | WebImage.Save(_path [, imageFormat]_) | 保存图像到指定路径。 |