Click here to Skip to main content
15,896,414 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I simply create a TextBox in a Web Form and set its property such as AutoPostBack=true and write a one function on its TextChanged Event in a code behind files

Here Is code For my TextBox

HTML
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div class="form-group col-md-12">
                     <label>Basic Salary : </label>
                    <asp:TextBox ID="txt_basic_salary" runat="server" CssClass='form-control addition'
                         placeholder="Basic Salary" TabIndex="4" AutoPostBack="True"
                         ontextchanged="txt_basic_salary_TextChanged"></asp:TextBox>
                </div>
                </ContentTemplate>
                </asp:UpdatePanel>


Here a code for my TextChanged Event in a code behind file
C#
protected void txt_basic_salary_TextChanged(object sender, EventArgs e){
   // do something 
}


Please suggest the corrections with my above code thanks in advance for your answers
Posted
Updated 27-Nov-14 6:11am
v2

1 solution

have u added scriptmanager


then all things seems to be set. Now u can add logic in your dropdown event change.
 
Share this answer
 
Comments
Omkar Hendre 29-Nov-14 6:48am    
Yes I Added ScriptManager in a MasterPage
Omkar Hendre 3-Dec-14 1:40am    
hello sir please tell me the way to do this

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900