Sponsored Ad

Friday, July 9, 2010

How to use Trigger textchange event in textbox using C#

This C# program will help you deal with OnTextChanged event of textbox. This event occur when textbox text changes and user leaves the textbox.

you can perform any operation as per your requirement.

 

How to use Trigger textchange event in textbox using C#

 

How to use Trigger textchange event in textbox using C# Example:

<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >

<script runat="server">
    protected void txtTextChanged_TextChanged(object sender, EventArgs e)
    {
      Response.Write("OnTextChanged event occured.");
    }

</script>

<html xmlns="">
<head>
    <title>How to use Trigger textchange event in textbox using C#.</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:TextBox ID="txtTextChanged" runat="server" AutoPostBack="True" OnTextChanged="txtTextChanged_TextChanged"></asp:TextBox>
        </div>
    </form>
</body>
</html>

No comments:

Post a Comment

Sponsored Ad

Development Updates