Its resolved, by modifying some code and some new line of code
string style = @"<style> .textmode { mso-number-format:\@; } </style>";
Response.Write(style);
string strPath = HostingEnvironment.ApplicationPhysicalPath + @"TempFiles/";
string fileName = Uid + "ContactList.xls";
File.WriteAllText(strPath + fileName, sw.ToString());
Response.Clear();
Response.Write("{\"success\":true,\"isSuccess\":true,\"fileName\":\"" + fileName + "\"}");