Asp.net中的FileUpload不提供File Filter功能,而且也不能使用OpenFileDialog。那就只有通过JavaScript实现
调用:
<asp:TextBox ID="txtFilePath" runat="server" Width="300px" />
<input type="button" οnclick="openfile()" value="Browse..." />
以上可以实现web中上传过滤。
Asp.net中的FileUpload不提供File Filter功能,而且也不能使用OpenFileDialog。那就只有通过JavaScript实现
调用:
<asp:TextBox ID="txtFilePath" runat="server" Width="300px" />
<input type="button" οnclick="openfile()" value="Browse..." />
以上可以实现web中上传过滤。