Tutoriales ASP

ASP INICIO

Tutorial de WordPress

Introducción a las páginas web Razor de páginas web Diseño de páginas web Carpetas de páginas web Páginas web globales Formularios de páginas web Objetos de páginas web Archivos de páginas web Bases de datos de páginas web Ayudantes de páginas web Cuadrícula web de páginas web Gráficos de páginas web Correo electrónico de páginas web Seguridad de las páginas web Publicación de páginas web Ejemplos de páginas web Clases de páginas web

Maquinilla de afeitar ASP.NET

Introducción a la maquinilla de afeitar Sintaxis de la maquinilla de afeitar Variables de Razor C# Razor C# Bucles Razor C# Lógica Razor VB Variables Razor Bucles VB Razor VB Lógica

ASP clásico

Introducción ASP Sintaxis ASP Variables ASP Procedimientos ASP Condicionales ASP Bucle ASP Formularios ASP Cookies ASP Sesión ASP Aplicación ASP ASP #incluir ASP Global.asa ASP AJAX correo electrónico ASP Ejemplos de ASP

Referencia ASP

Funciones ASP VB Palabras clave ASP VB Respuesta ASP Solicitud ASP Aplicación ASP Sesión ASP Servidor ASP Error de ASP Sistema de archivos ASP flujo de texto ASP Unidad ASP Archivo ASP Carpeta ASP Diccionario ASP Rotador de anuncios ASP Cap del navegador ASP Enlace de contenido ASP Rotador de contenido ASP Referencia rápida ASP

ADO Tutorial

Introducción a ADO Conectar ADO Conjunto de registros ADO Pantalla ADO Consulta ADO Ordenar ADO Agregar Actualización de ADO ADO Eliminar Demostración de ADO Acelerar ADO

Objetos ADO

Comando ADO Conexión ADO ADO Error Campo ADO Parámetro ADO Propiedad ADO Registro ADO Conjunto de registros ADO Corriente ADO Tipos de datos ADO

Páginas web ASP.NET - Ayudantes


Web Helpers simplifica enormemente el desarrollo web y las tareas comunes de programación.


Ayudantes de ASP.NET

Los ayudantes de ASP.NET son componentes a los que se puede acceder mediante líneas individuales de código Razor.

Puede crear sus propios ayudantes con la sintaxis de Razor almacenada como archivos .cshtml o usar los ayudantes de ASP.NET integrados.

Aprenderá a usar los ayudantes de Razor en los siguientes capítulos de este tutorial.

A continuación se muestra una breve descripción de algunos útiles ayudantes de Razor:


El ayudante de WebGrid

El ayudante de WebGrid simplifica la forma de mostrar datos:

  • Configura automáticamente una tabla HTML para mostrar datos
  • Soporta diferentes opciones para formatear
  • Admite paginación (primero, siguiente, anterior, último) a través de datos
  • Admite la clasificación haciendo clic en los encabezados de las columnas

El ayudante de gráficos

El "Ayudante de gráficos" puede mostrar imágenes de gráficos de diferentes tipos con muchas opciones de formato y etiquetas.

gráfico gráfico

El ayudante de gráficos puede mostrar datos de matrices, bases de datos o archivos.


El ayudante de correo web

El asistente de WebMail proporciona funciones para enviar mensajes de correo electrónico utilizando SMTP (Protocolo simple de transferencia de correo).


El ayudante de WebImage

El ayudante de WebImage proporciona funcionalidad para administrar imágenes en una página web.

Palabras clave: voltear, rotar, cambiar el tamaño, marca de agua.



Ayudantes de terceros

Con Razor puede aprovechar los asistentes integrados o de terceros para simplificar el uso del correo electrónico, las bases de datos, los multimedia y las redes sociales, así como muchos otros temas como la navegación y la seguridad web.


Analítica (Google)

Helper Description
Analytics.GetGoogleHtml(webPropertyId) Renders the Google Analytics JavaScript code for the specified ID.
Analytics.GetStatCounterHtml(project, security)Renders the StatCounter Analytics JavaScript code for the specified project.
Analytics.GetYahooHtml(account) Renders the Yahoo Analytics JavaScript code for the specified account.

Bing

Helper Description
Bing.SearchBox([boxWidth]) Passes a search to Bing. To specify the site to search and a title for the search box, you can set the Bing.SiteUrl and Bing.SiteTitle properties. Normally you set these properties in the _AppStart page.
Bing.AdvancedSearchBox([, boxWidth] [, resultWidth] [, resultHeight]
  [, themeColor] [, locale]
)
Displays Bing search results in the page with optional formatting. To specify the site to search and a title for the search box, you can set the Bing.SiteUrl and Bing.SiteTitle properties. Normally you set these properties in the _AppStart page.

Cripto

Helper Description
Crypto.Hash(string [, algorithm])
Crypto.Hash(bytes [, algorithm])
Returns a hash for the specified data. The default algorithm is sha256.

Facebook

Helper Description
Facebook.LikeButton(href [, buttonLayout] [, showFaces] [, width] [, height]
[, action] [, font] [, colorScheme] [, refLabel]
)
Lets Facebook users make a connection to pages.

Subir archivo

Helper Description
FileUpload.GetHtml([initialNumberOfFiles] [, allowMoreFilesToBeAdded]
  [
, includeFormTag] [, addText] [, uploadText])
Renders UI for uploading files.

tarjeta de jugador

Helper Description
GamerCard.GetHtml(gamerTag) Renders the specified Xbox gamer tag.

Referencia de objetos de Gravatar

Helper Description
Gravatar.GetHtml(email [, imageSize] [, defaultImage] [, rating]
  [, imageExtension] [, attributes]
)
Renders the Gravatar image for the specified email address.

json

Helper Description
Json.Encode(object) Converts a data object to a string in the JavaScript Object Notation (JSON) format.
Json.Decode(string) Converts a JSON-encoded input string to a data object that you can iterate over or insert into a database.

Compartir en enlace

Helper Description
LinkShare.GetHtml(pageTitle [, pageLinkBack] [, twitterUserName]
  [, additionalTweetText] [, linkSites]
)
Renders social networking links using the specified title and optional URL.

ModeloEstado

Helper Description
ModelStateDictionary.AddError(key, errorMessage)Associates an error message with a form field. Use the ModelState helper to access this member.
ModelStateDictionary.AddFormError(errorMessage) Associates an error message with a form. Use the ModelState helper to access this member.
ModelStateDictionary.IsValid Returns true if there are no validation errors. Use the ModelState helper to access this member.

Información del objeto

Helper Description
ObjectInfo.Print(value [, depth] [, enumerationLength])Renders the properties and values of an object and any child objects.

Recaptcha

Helper Description
Recaptcha.GetHtml([, publicKey] [, theme] [, language] [, tabIndex]) Renders the reCAPTCHA verification test.
ReCaptcha.PublicKey
ReCaptcha.PrivateKey
Sets public and private keys for the reCAPTCHA service. Normally you set these properties in the _AppStart page.
ReCaptcha.Validate([, privateKey]) Returns the result of the reCAPTCHA test.

Información del servidor

Helper Description
ServerInfo.GetHtml()Renders status information about ASP.NET Web Pages.

Gorjeo

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

Helper Description
Video.Flash(filename [, width, height]) Renders a Flash video player for the specified file with optional width and height.
Video.MediaPlayer(filename [, width, height])Renders a Windows Media player for the specified file with optional width and height.
Video.Silverlight(filename, width, height)Renders a Silverlight player for the specified .xap file with required width and height.

caché web

Helper Description
WebCache.Get(key) Returns the object specified by key, or null if the object is not found.
WebCache.Remove(key) Removes the object specified by key from the cache.
WebCache.Set(key, value [, minutesToCache] [, slidingExpiration]) Puts value into the cache under the name specified by key.

Imagen web

Helper Description
WebImage(path)Loads an image from the specified path.
WebImage.AddImagesWatermark(image) Adds the specified image as a watermark.
WebImage.AddTextWatermark(text) Adds the specified text to the image.
WebImage.FlipHorizontal()
WebImage.FlipVertical()
Flips the image horizontally or vertically.
WebImage.GetImageFromRequest() Loads an image when an image is posted to a page during a file upload.
WebImage.Resize(width, height) Resizes the image.
WebImage.RotateLeft()
WebImage.RotateRight()
Rotates the image to the left or the right.
WebImage.Save(path [, imageFormat]) Saves the image to the specified path.