Webpages Ref Helpers
## ASP.NET Web Pages - More Helpers
* * *
* * *
## Analytics Object Reference (Google)
| Helper | Description |
| --- | --- |
| Analytics.GetGoogleHtml(_webPropertyId_) | Renders Google Analytics JavaScript code for the specified ID. |
| Analytics.GetStatCounterHtml(_project_, _security_) | Renders StatCounter Analytics JavaScript code for the specified project. |
| Analytics.GetYahooHtml(_account_) | Renders Yahoo Analytics JavaScript code for the specified account. |
* * *
## Bing Object Reference
| Helper | Description |
| --- | --- |
| Bing.SearchBox(__) | Passes search to Bing. You can set the Bing.SiteUrl and Bing.SiteTitle properties to set site search and search box title, usually in the _\_AppStart_ page. |
| Bing.AdvancedSearchBox(_[, boxWidth] [, resultWidth] [, resultHeight] [, themeColor] [, locale]_) | Displays Bing search results on the page with optional formatting. You can set the Bing.SiteUrl and Bing.SiteTitle properties to set site search and search box title, usually in the _\_AppStart_ page. |
* * *
## Chart Object Reference
| Helper | Description |
| --- | --- |
| |
| Chart(_width_, _height [, template] [, templatePath]_) | Initializes the chart. |
| Chart.AddLegend(_ [, name]_) | Adds a legend to the chart. |
| Chart.AddSeries(_ [, chartType] [, chartArea] [, axisLabel] [, legend] [, markerStep] [, xValue] [, xField] [, yValues] [, yFields] [, options])_ | Adds a series of data to the chart. |
* * *
## Crypto Object Reference
| Helper | Description |
| --- | --- |
| Crypto.Hash(_string [, algorithm]_) Crypto.Hash(_bytes [, algorithm]_) | Returns a hash of the specified data. The default algorithm is sha256. |
* * *
## Facebook Object Reference
| Helper | Description |
| --- | --- |
| Facebook.LikeButton(_href [, buttonLayout] [, showFaces] [, width] [, height] [, action] [, font] [, colorScheme] [, refLabel]_) | Lets Facebook users connect to the web page. |
* * *
## FileUpload Object Reference
| Helper | Description |
| --- | --- |
| FileUpload.GetHtml(_ [_, _allowMoreFilesToBeAdded] [_, _includeFormTag] [, addText] [_, _uploadText]_) | Renders UI for uploading files. |
* * *
## GamerCard Object Reference
| Helper | Description |
| --- | --- |
| GamerCard.GetHtml(_gamerTag_) | Renders the specified Xbox gamer tag. |
* * *
## Gravatar Object Reference
| Helper | Description |
| --- | --- |
| Gravatar.GetHtml(_email [, imageSize] [, defaultImage] [, rating] [, imageExtension] [, attributes]_) | Renders Gravatar image for the specified email address. |
* * *
## Json Object Reference
| Helper | Description |
| --- | --- |
| Json.Encode(_object_) | Converts a data object to a string using JavaScript Object Notation (JSON). |
| Json.Decode(_string_) | Converts a JSON-encoded input string to the data object you specify. |
* * *
## LinkShare Object Reference
| Helper | Description |
| --- | --- |
| LinkShare.GetHtml(_pageTitle [, pageLinkBack] [, twitterUserName] [, additionalTweetText] [, linkSites]_) | Renders social network links using the specified title and optional URL. |
* * *
## ModelState Object Reference
| Helper | Description |
| --- | --- |
| ModelStateDictionary.AddError(_key_, _errorMessage_) | Associates an error message with a form field. Access members using the ModelState helper. |
| ModelStateDictionary.AddFormError(_errorMessage_) | Associates an error message with a form. Access members using the ModelState helper. |
| ModelStateDictionary.IsValid | Returns true if there are no validation errors. Access members using the ModelState helper. |
* * *
## ObjectInfo Object Reference
| Helper | Description |
| --- | --- |
| ObjectInfo.Print(_value [, depth] [, enumerationLength]_) | Renders the properties and values of an object and all child objects. |
* * *
## Recaptcha Object Reference
| Helper | Description |
| --- | --- |
| Recaptcha.GetHtml(_[, publicKey] [, theme] [, language] [, tabIndex]_) | Renders reCAPTCHA verification test. |
| ReCaptcha.PublicKey ReCaptcha.PrivateKey | Sets the public and private keys for the reCAPTCHA service. Usually set in the _\_AppStart_ page. |
| ReCaptcha.Validate(_[, privateKey]_) | Returns the reCAPTCHA test result. |
| ServerInfo.GetHtml() | Renders status information about ASP.NET Web Pages. |
* * *
## Twitter Object Reference
| Helper | Description |
| --- | --- |
| Twitter.Profile(_twitterUserName_) | Renders Twitter stream for the specified user. |
| Twitter.Search(_searchQuery_) | Renders Twitter stream for the specified search text. |
* * *
## Video Object Reference
| Helper | Description |
| --- | --- |
| Video.Flash(_filename [, width, height]_) | Renders Flash video playback for the specified file with optional width and height. |
| Video.MediaPlayer(_filename [, width, height]_) | Renders Windows Media Player for the specified file with optional width and height. |
| Video.Silverlight(_filename_, _width_, _height_) | Renders Silverlight player for the specified _.xap_ file with required width and height. |
* * *
## WebCache Object Reference
| Helper | Description |
| --- | --- |
| WebCache.Get(_key_) | Returns the specified object by _key_, or returns null if the object is not found. |
| WebCache.Remove(_key_) | Removes the specified object from the cache by _key_. |
| WebCache.Set(_key_, _value [, minutesToCache] [, slidingExpiration]_) | Places _value_ into the cache under the specified name by _key_. |
* * *
## WebGrid Object Reference
| Helper | Description |
| --- | --- |
| WebGrid(_data_) | Creates a new WebGrid object using query data. |
| WebGrid.GetHtml() | Renders markup to display data in an HTML table. |
| WebGrid.Pager() | Renders a pager for the WebGrid object. |
* * *
## WebImage Object Reference
| Helper | Description |
| --- | --- |
| WebImage(_path_) | Loads an image from the specified path. |
| WebImage.AddImagesWatermark(_image_) | Adds a watermark to the specified image. |
| WebImage.AddTextWatermark(_text_) | Adds specified text to the image. |
| WebImage.FlipHorizontal() WebImage.FlipVertical() | Flips the image horizontally/vertically. |
| WebImage.GetImageFromRequest() | Loads the image when it is sent to a file upload page. |
| WebImage.Resize(_width_,_height_) | Resizes the image. |
| WebImage.RotateLeft() WebImage.RotateRight() | Rotates the image left or right. |
| WebImage.Save(_path [, imageFormat]_) | Saves the image to the specified path. |
YouTip