c# - Web Forms send text from textbox to method onChange event -


i'm new in web forms. need send text aspx page server method using onchange in textbox:

email:     <asp:textbox id="filteraccountstextbox" runat="server"/> 

may me?

here are. after type on textbox2 , leave it. textbox2.text post server (based on autopostback attribute) update label1.

aspx:

<asp:textbox id="textbox2" runat="server"      autopostback="true" ontextchanged="textbox2_textchanged"></asp:textbox> <asp:label id="label1" runat="server" text="you type: "></asp:label> 

cs:

protected void textbox2_textchanged(object sender, eventargs e) {     label1.text = "you type:" + textbox2.text; } 

hope help.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -