请帮助我如何处理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;
答案 0 :(得分:0)
this.txtLog.TextChanged += txtLogTextChanged;
protected void txtLogTextChanged(object sender, EventArgs e)
{
//do whatever you want on text changed
}