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

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

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

StringGrid issue in Delphi XE8 firemonkey mobile app -