C# 如何在asp.net中处理textchange事件
请帮助我如何处理asp.net中的TextChange事件。我们非常感谢您的回复C# 如何在asp.net中处理textchange事件,c#,asp.net,C#,Asp.net,请帮助我如何处理asp.net中的TextChange事件。我们非常感谢您的回复 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 = su
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;
请详细说明您想要什么?欢迎来到StackoverFlow。请阅读并了解。我的文字更改事件未被击中。
this.txtLog.TextChanged += txtLogTextChanged;
protected void txtLogTextChanged(object sender, EventArgs e)
{
//do whatever you want on text changed
}