在render()中添加了一个htmlinputfile控件,并添加他的事件
wr.AddAttribute(HtmlTextWriterAttribute.Onchange,Page.GetPostBackEventReference(this,"fil"));定义事件:
public event FileImageEventHandler PropertyChange;public void  OnPropertyChange(FileImageEventArgs e)
{
if(PropertyChange !=null)
PropertyChange(this,e);
}在RaisePostDataChangedEvent中调用onpropertychange
但是在页面中调用的时候,点浏览选择文件后,页面自己刷新了一下,文本框中根本不出现路径,请问是因为htmlinputfile控件的问题,还是我定义的出现了什么问题,如果我把事件去掉,就一切正常.请问怎么定义html控件的事件呢。...?