Updatepanel Response Compression

Posted on 2012-09-03
Last Modified: 2012-10-25
Am trying to compress the space of response return while async postback occurs .

<html xmlns="">
<head runat="server">
    <form id="form1" runat="server">
        <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
            <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
            <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
            <asp:Button ID="Button1"
                runat="server" Text="Button" />

Open in new window

Actual :
            <span id="Label1">234234</span>
            <span id="Label2">234234</span>
            <span id="Label3">234234</span>
            <input type="submit" name="Button1" value="Button" id="Button1" />

Open in new window

Am Expecting like below, ie remove all white space .
1|#||4|225|updatePanel|UpdatePanel1|<span id="Label1">234234</span><span id="Label2">234234</span><span id="Label3">234234</span><input type="submit" name="Button1" value="Button" id="Button1" />|196|hiddenField|__VIEWSTATE|/wEPDwUKMTI5NjM2MTM4MQ9kFgICAw9kFgQCAQ8PFgIeBFRleHQFBjIzNDIzNGRkAgUPZBYCZg9kFgYCAQ8PFgIfAAUGMjM0MjM0ZGQCAw8PFgIfAAUGMjM0MjM0ZGQCBQ8PFgIfAAUGMjM0MjM0ZGRkMiCnI8RjoUZDZEWEZzxxqlWha4i2G6J6iRqgt7Kmw8A=|92|hiddenField|__EVENTVALIDATION|/wEdAAIUgvUXI9eNOiMXCIUutudUzfg78Z8BXhXifTCAVkevdwe+PRo0ya3IyNe4hMfuckTFBl/ZFohNE173e8IxEDvl|0|asyncPostBackControlIDs|||0|postBackControlIDs|||26|updatePanelIDs||tUpdatePanel1,UpdatePanel1|0|childUpdatePanelIDs|||25|panelsToRefreshIDs||UpdatePanel1,UpdatePanel1|2|asyncPostBackTimeout||90|16|formAction||ajaxUpdRedu.aspx|

Open in new window

Question by:Rajar Ahmed
    LVL 83

    Accepted Solution

    LVL 18

    Author Comment

    by:Rajar Ahmed
    i followed as is it was mentioned on that link ,
    Response.Filter = new UpdatePanelShrinkerFilter(Response.Filter, Page); in Page_Load of pages or master pages.
    Make sure you either have write access for web.config and create rights for the web folder or that you add to the web.config
    <add path="CommandHandler.axd" verb="GET,HEAD" type="Siderite.Web.Handlers.CommandHandler" validate="true" />
    in the system.web , httpHandlers section.

    Open in new window

     but i receive this error . No clues.

    Microsoft JScript runtime error: Object doesn't support this property or method

    LVL 25

    Expert Comment

    Looks like you need to add command handler in the config file. Check the codeplex site and add the required config settings.
    LVL 18

    Author Comment

    by:Rajar Ahmed
    hi apeter,

       i exactly did wat u said . still i get this issue .

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    761 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

    6 Experts available now in Live!

    Get 1:1 Help Now