有一个用户控件fileimage,在此控件中使用了HtmlControls.HtmlInputFile,现在我想给fileimage这个控件添加事件(当文件被选择后可以预览文件)看以下代码ascx中
<INPUT id="File1" onpropertychange="changed" type="file" name="File1" runat="server">ascx.cs中
public event EventHandler PathChange;

protected void changed(object sender,EventArgs e)
{
if(PathChange !=null)
PathChange(this,e);
}
结果总是给我提示changed未定义,这是什么原因呢,按理说ascx继承自ascx.cs,而我的changed在ascx.cs中定义的是protected,为什么提示未定义呢?????
请高手指点