Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ASP.NET WebForms AJAX.NET ASP.NET MVC C# CSS3 HTML5 jQuery PHP5 WPF Download as PDF
Primero, añadirémos a la página el control "Label". Un control "Label" es lo más simple, sólo es usado para
contener un texto. Agrega el siguiente fragmento de código HTML entre los tags <form>
Lo básico
Introducción
<asp:Label runat="server" id="HelloWorldLabel"></asp:Label>
ASP.NET - Web Forms, MVC,
Core?
Despues, añade este bloque de script en algún lugar de tu página, preferiblemente debajo de la directiva
Primeros pasos
Page que se encuentra al inicio de tu archivo:
Tu primer sitio web
<% ¡Hola, mundo!
HelloWorldLabel.Text = "Hello, world!"; CodeBehind
%> Eventos
Más eventos
Si no has trabajado con ASP.NET anteriormente probablemente hay muchas cosas que te estás
preguntando en este momento, pero como dije, ahora mismo se trata de ver algunos resultados. Para ver
tu página en acción, usa Debug -> Start Without Debugging, o simplemente presiona F6. Visual Studio UserControls
compilará tu proyecto, y abrirá la página que estás creando en tu navegador predeterminado. Esta página
UserControls - Introducción
simplemente tendrá un texto que dice "Hello, world!" - ¡felicitaciones, acabas de crear tu primer sitio web
Creando un UserControl
con ASP.NET! Este es el archivo completo:
Usando UserControl
<% Eventos en UserControls
HelloWorldLabel.Text = "Hello, world!";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
Validación
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" > Validación - Introducción
<head runat="server"> Validación -
<title>Untitled Page</title> RequiredFieldValidator
</head>
Validación - CompareValidator
<body>
Validación - RangeValidator
<form id="form1" runat="server">
<div> Validación -
<asp:Label runat="server" id="HelloWorldLabel"></asp:Label> RegularExpressionValidator
</div> Validation - CustomValidator
</form> More validation
</body>
</html>
Caching
https://asp.net-tutorials.com/es/155/lo-basico/hola-mundo/ 1/2
27/12/2019 ¡Hola, mundo! - The complete ASP.NET WebForms tutorial
Introduction to caching
This article has been fully translated into the following languages:
OutputCache
Arabic Persian Portuguese OutputCache - more examples
Russian Spanish Vietnamese OutputCache - Substitution
Caching objects
Is your preferred language not on the list? Click here to help us translate this article into your
language!
State
Cookies
Sessions
ViewState
Misc
Sending e-mails
Controls
Control FileUpload
Previous Next
Localization
Introduction to localization
Hello, localized world!
The CultureInfo class
Local & Global resources
Implicit & Explicit localization
Localizing the CodeBehind
Changing the active culture
© asp.net-tutorials.com 2007-2019
» Contact Us » Localization
https://asp.net-tutorials.com/es/155/lo-basico/hola-mundo/ 2/2