我有下面的代码用于DownloadFile(),它将图像从目录加载到屏幕上。我希望能够在用户单击文本框内部时立即加载图像。我怎样才能在idAssignmentNum()?
中实现这一点protected void DownloadFile(object sender, EventArgs e)
{
string filePath = (sender as LinkButton).CommandArgument;
imgRecon.ImageUrl = filePath;
}
protected void idAssignmentNum_Init(object sender, EventArgs e)
{
}
答案 0 :(得分:0)
this.textBox1.TextChanged += new System.EventHandler(this.idAssignmentNum_Init);