Here is a simple application in ASP.Net using C#. You can see a live demo here http://dev.aspnetguy.com/dev/blog/Default.aspxDefault.aspx
<%@ Page Language="C#" CodeFile="Default.aspx.cs" Inherits="BlogNet._Default" %><?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <body> <form id="form1" runat="server"> Enter your name: <asp:TextBox ID="nameTextBox" runat="server" /><br /> <asp:Button ID="enterButton" runat="server" Text="Enter" OnClick="enterButton_Click" /> <br /> <asp:Label ID="messageLabel" runat="server" /> </form> </body></html>
Default.aspx.cs
using System;using System.Web;using System.Web.UI;using System.Web.UI.WebControls; namespace BlogNet{ public partial class _Default : Page { protected void Page_Load(object sender, EventArgs e) { } protected void enterButton_Click(object sender, EventArgs e) { messageLabel.Text = "Hello " + nameTextBox.Text + "!"; } }}