• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 604
  • Last Modified:

Updatepanel Response Compression

Am trying to compress the space of response return while async postback occurs .

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <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" />
        </ContentTemplate>
        </asp:UpdatePanel>
    
    </div>
    </form>
</body>
</html>

Open in new window

Actual :
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

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

responseCompression.png
0
Rajar Ahmed
Asked:
Rajar Ahmed
  • 2
1 Solution
 
Rajar AhmedConsultantAuthor Commented:
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.


this._destroyTree(updatePanelElement);
Microsoft JScript runtime error: Object doesn't support this property or method

Meeran03
0
 
apeterCommented:
Looks like you need to add command handler in the config file. Check the codeplex site and add the required config settings.
0
 
Rajar AhmedConsultantAuthor Commented:
hi apeter,

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now