protected void Page_Load(object sender, EventArgs e) { HtmlInputFile filUpload = (HtmlInputFile)this.FindControl("filUpload"); }
protected void btnSave_Click(object sender, EventArgs e) { if (filUpload.PostedFile != null) { } }
<input id="filUpload" type="file" />
filUpload
runat="server"
<input id="filUpload" type="file" runat="server" />
FindControl("filUpload")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)