When the user clicks on a button I am displaying open, save dialog box to save or open the file. If the file size is more , it is taking much time to get the dialog box. I have add an processing image to panel and when the user clicks on the button I am making that panel visible. The problem is the panel is not hiding when the dialog box appears the code I am using
pnlProcess.CssClass = "viewControl"; // I am making panel visible here
path = System.IO.Path.GetFullPath(fname);
string name = Path.GetFileName(path);
string ext = Path.GetExtension(path);
string type = "";
if (ext != null)
type = "Application/x-msexcel";
Response.AppendHeader("content-disposition","attachment; filename=" + name);
if (type != "")
Response.ContentType = type;
pnlProcess.CssClass = "hideControl"; // here the panel is not hiding
Its bit urget...
Thanks in advance.