Do you have a script manager in your form?
A tag like this:
<asp:ScriptManager ID="ScriptManager1" runat="server" />
It would help everyone here if you post your entire asp page here.
I can see that you are trying to use fileupload control.You can test this code:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div style="margin: 30px">
<asp:FileUpload ID="FileUpload1" runat="server" />
<asp:RequiredFieldValidator ErrorMessage="Required" ControlToValidate="FileUpload1"
runat="server" ForeColor="Red"></asp:RequiredFieldValidator>
<asp:Button ID="btnUpload" Text="Submit" runat="server" OnClick="Upload" />
</div>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="btnUpload" />
</Triggers>
</asp:UpdatePanel>
And then in code behind:
protected void Upload(object sender, EventArgs e)
{
string fileName = System.IO.Path.GetFileName(FileUpload1.FileName);
FileUpload1.SaveAs(Server.MapPath("~/Whateverfolderyouwanttouploadto/") + fileName);
}