Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/295.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在asp.net中处理textchange事件_C#_Asp.net - Fatal编程技术网

C# 如何在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

请帮助我如何处理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 = sub;

请详细说明您想要什么?欢迎来到StackoverFlow。请阅读并了解。我的文字更改事件未被击中。
this.txtLog.TextChanged += txtLogTextChanged;  

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