please find code in attachment file
void btnSave_Click(object sender, EventArgs e){ // Other validation code if (!ctlFile.HasFile) // display some sort of error else ctlFile.PostedFile.SaveAs("C:\\Inetpub\\wwwroot\\ somefilename.dat"); // Other code to handle save routine}