Refresh radgrid after File Save Dialogue box.

3 posts, 0 answers
  1. Lokesh
    Lokesh avatar
    89 posts
    Member since:
    Jul 2012

    Posted 02 Jul 2012 Link to this post

    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. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 02 Jul 2012 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Lokesh
    Lokesh avatar
    89 posts
    Member since:
    Jul 2012

    Posted 02 Jul 2012 Link to this post

    Hi Jayesh,
    Thanks for your reply.
    Could you please show me a sample jQuery code.
    I have no knowledge of jQuery.

    Thanks,
    Lok..
Back to Top