This is a migrated thread and some comments may be shown as answers.

Refresh radgrid after File Save Dialogue box.

2 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lokesh
Top achievements
Rank 1
Lokesh asked on 02 Jul 2012, 09:25 AM
Hi Team,
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..

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 02 Jul 2012, 01:58 PM
Hello Lokesh,

As per my knowledge we are not able to do such type of functionality after export in .net.

Please try to achieve this functionality by using jquery.

Thanks,
Jayesh Goyani
0
Lokesh
Top achievements
Rank 1
answered on 03 Jul 2012, 04:27 AM
Hi Jayesh,
Thanks for your reply.
Could you please show me a sample jQuery code.
I have no knowledge of jQuery.

Thanks,
Lok..
Tags
Grid
Asked by
Lokesh
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Lokesh
Top achievements
Rank 1
Share this question
or