using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FormControls
{
public partial class ControlsExample4 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack == false)
{
//
Add the HTML Form Control's OnKeyUp
attribute to the WFC
//
that calls the Display function in client-side script
txtName.Attributes.Add("OnKeyUp", "Display();");
}
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
lblMessage.Text
= "Server Received: " + txtName.Text;
}
}
}