Regarding update panel

Posted on 2009-02-23
Last Modified: 2012-05-06
Hi sir, this is venu manne .if i use update panel response .write() is not working in any browser so can u plz give any alternative for this problem ..hope quick reply from u its little bit urgent  

thanks in advance
venu manne
Question by:mannevenu
    LVL 92

    Expert Comment

    not sure I understand. can you post the code that is causing propblems
    LVL 2

    Expert Comment

    Please post the code which is causing you problem..

    Author Comment

    i am sending u the code which causing me problem
    tihs code is for sneding page to excel becz of update panel it is showing parser error
     public static void Convert1(DataSet ds, HttpResponse Response)
            Response.AddHeader("content-disposition", "attachment; filename=mp1.xls");
            Response.Charset = "";
            //Response.ContentType = "application/";
            System.IO.StringWriter stringWrite = new System.IO.StringWriter();
            System.Web.UI.HtmlTextWriter htmlWrite = new System.Web.UI.HtmlTextWriter(stringWrite);
            System.Web.UI.WebControls.DataGrid dg = new System.Web.UI.WebControls.DataGrid();
            dg.DataSource = ds.Tables[0];

    Open in new window

    LVL 6

    Expert Comment

    If ur datagrid is in the updatepanel, then it create problem. Lets do one thing, take a label outside updatepanel and try to write that text u use in Response.Write. Is it working?

    Accepted Solution

    hi i cont get ur solution .By searching i found one solution with this solution it is working first time later it is showing error as already used... i wil post both code and error plz go through and giv me solution

    little bit urgent
    thanks venu
        <asp:PostBackTrigger ControlID="btnExcelReport" />
    if you are trying to open the file from your list of most recently used files on the file menu,make sure that the file has not been renamed,moved,or deleted

    Open in new window


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
    A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
    This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in… provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now