繁体   English   中英

如何处理asp.net中的textchange事件

[英]how handle textchange event in asp.net

请帮助我如何处理 asp.net 中的TextChange事件。 早先respose 高度赞赏。

string str = this.txtLog.Text.ToString();
int startPos = str.LastIndexOf("UID:") + "UID:".Length + 1;
int length = str.IndexOf("Sector") - startPos;
string sub = str.Substring(startPos, length);
readerUID = sub;
this.txtLog.TextChanged += txtLogTextChanged;  

protected void txtLogTextChanged(object sender, EventArgs e)
{
   //do whatever you want on text changed
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM