ASP.NET Web Pages - More Helpers
ASP.NET Helpers - Object Reference
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([boxWidth]) |
Passes a search to Bing. You can set the Bing.SiteUrl and Bing.SiteTitle properties to define the site search and the search box title, usually in the _AppStart page to set these properties. |
| Bing.AdvancedSearchBox(*[, boxWidth] [, resultWidth] [, resultHeight] |
|
| [, themeColor] [, locale]*) |
Displays Bing search results on the page in an optional format. You can set the Bing.SiteUrl and Bing.SiteTitle properties to define the site search and the search box title, usually in the _AppStart page to set these properties. |
Chart Object Reference
| Helper |
Description |
|
|
| Chart(width, height [, template] [, templatePath]) |
Initializes the chart. |
| Chart.AddLegend([title] [, name]) |
Adds a legend to the chart. |
| Chart.AddSeries(*[name] [, 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 the 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]*) |
Connects Facebook users to the web page. |
FileUpload Object Reference
| Helper |
Description |
| FileUpload.GetHtml(*[initialNumberOfFiles] [*, *allowMoreFilesToBeAdded] |
|
| [*, *includeFormTag] [, addText] [*, *uploadText]*) |
Renders the 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 a 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 into 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. Use the ModelState helper to access members. |
| ModelStateDictionary.AddFormError(errorMessage) |
Associates an error message with a form. Use the ModelState helper to access members. |
| ModelStateDictionary.IsValid |
Returns true if there are no validation errors. Use the ModelState helper to access members. |
ObjectInfo Object Reference
| Helper |
Description |
| ObjectInfo.Print(value [, depth] [, enumerationLength]) |
Renders an object and the properties and values of all its child objects. |
Recaptcha Object Reference
| Helper |
Description |
| Recaptcha.GetHtml([, publicKey] [, theme] [, language] [, tabIndex]) |
Renders the reCAPTCHA verification test. |
| ReCaptcha.PublicKey |
|
| ReCaptcha.PrivateKey |
Sets the public and private keys for the reCAPTCHA service. Usually in the _AppStart page to set these properties. |
| 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 a Twitter stream for the specified user. |
| Twitter.Search(searchQuery) |
Renders a Twitter stream for the specified search text. |
Video Object Reference
| Helper |
Description |
| Video.Flash(filename [, width, height]) |
Renders a Flash video player with optional width and height for the specified file. |
| Video.MediaPlayer(filename [, width, height]) |
Renders a Windows Media player with optional width and height for the specified file. |
| Video.Silverlight(filename, * width*, height) |
For the specified .xap file, renders a Silverlight player with the required width and height. |
WebCache Object Reference
| Helper |
Description |
| WebCache.Get(key) |
Pass key Returns the specified object, or null if the object is not found. |
| WebCache.Remove(key) |
Pass key Removes the specified object from the cache. |
| WebCache.Set(key, value [, minutesToCache] [, slidingExpiration]) |
Pass key Puts the value into the cache under the specified name. |
WebGrid Object Reference
| Helper |
Description |
| WebGrid(data) |
Creates a new WebGrid object using the query data. |
| WebGrid.GetHtml() |
Renders markup to display data in an HTML table. |
| WebGrid.Pager() |
Renders a page 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 the specified text to the image. |
| WebImage.FlipHorizontal() |
|
| WebImage.FlipVertical() |
Flips the image horizontally/vertically |
| WebImage.GetImageFromRequest() |
Loads the image when it is transferred 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. |