Hi Team,
I have a radgrid which I want to refresh when File Save Dialogue box is closed.
This is my code behind.
If I comment this code to open save file dailogue box, grid gets refreshed. There is some prob with that code..
Could you help me out ?
Thanks,
Lok..
I have a radgrid which I want to refresh when File Save Dialogue box is closed.
This is my code behind.
protected void btnPayment_Click(object sender, EventArgs e)
{
try
{
// do some stuff...
// This code below opens the Save File Dialogue box ..
String FilePath = Server.MapPath(".\\GiroPayments\\" + FileName + "");
System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
response.ClearContent();
response.Clear();
response.ContentType = "text/plain";
response.AddHeader("Content-Disposition", "attachment; filename=" + FileName + ";");
response.TransmitFile(FilePath);
response.Flush();
response.End();
rgGiroPayments.Rebind();
}
catch() {}
}
If I comment this code to open save file dailogue box, grid gets refreshed. There is some prob with that code..
Could you help me out ?
Thanks,
Lok..