ASP.NET - File Downloading - Asked By Naresh Kumar on 02-Apr-10 03:52 AM

Hi All,

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)
switch (ext.ToLower()){
case ".csv":
type =
if (forceDownload)
"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.

Mohan Raj Aryal replied to Naresh Kumar on 02-Apr-10 08:11 AM
Where you are trying to hide the panel?

This might be helpful to you: