string fname = drop.SelectedValue + ".xls";
string namee = fname;
System.IO.FileInfo finfo = new System.IO.FileInfo(fname);
Response.Clear();
Response.AppendHeader("content-type", "application/x-msexcel");
Response.AppendHeader("content-disposition", "attachment; filename=" + drop.SelectedItem.Text + ".xls");
Response.End();
// I have created empty Excel Sheet but the problem is while opening its show me error like the file u r trying to open filename.xls is in a different format than specified by the file extension verify that the file is not corrupted and it from a trusted source before opening the file 
Rojalin SahooRank #2,919 · 493 reputationPosted Aug 31, 2015, 11:42 PM EDT
Pranay Kant10 reputationPosted Sep 15, 2015, 12:26 AM EDT
You could refer to the article from codeproject Using C# to create an Excel or you could simple use some third party library like free Spire.XLS to create Excel with simple code.
Khan Abrar AhmedRank #778 · 3K reputationPosted Sep 1, 2015, 4:10 AM EDT
string namee = fname;
System.IO.FileInfo finfo = new System.IO.FileInfo(fname);
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" + drop.SelectedItem.Text + ".xls");
Response.ContentType = "application/x-msexcel";
Response.End();
if contenet type will not work then try the below content type
Response.ContentType = "application/vnd.ms-excel";
akshay rasalakar106 reputationPosted Sep 9, 2015, 7:01 AM EDT
Bobby Milligan6 reputationPosted Sep 9, 2015, 11:05 PM EDT
akshay rasalakar106 reputationPosted Sep 10, 2015, 5:05 AM EDT