Showing posts with label loaded. Show all posts
Showing posts with label loaded. Show all posts

Wednesday, March 28, 2012

Content compression & IE6

The problem is javascript files (which are loaded in a page through ScriptResource.axd) are not compressed with gzip for IE 6. But everything works fine with IE7. The reason is ScriptResourceHandler.IsCompressionEnabled() function, which prohibites gzip encoding for IE 6 and below.

But why?? What's the reason?? 90% of my clients use IE6 and I don't want they load a 120Kb MicrosoftAjax.js.

How to workaround this problem?

None of developers know the answer?

Monday, March 26, 2012

ConfirmButtonExtender not working after PostBack

Hi All,

A small problem I'm having: I have a page with a ConfirmButtonExtender which works absolutely perfectly when the page is first loaded.

However as soon as I do a PostBack - whether I'm selecting something in a GridView, clicking a different button, choosing a value from a DropDownList, or whatever - it stops working. It doesn't throw any error, it just has no effect and the button it's targeting just runs its OnClick procedure straight away.

Anyone have any idea what's causing this and how I can get around it?

Many thanks in advance,
Dale

Could you please post a small sample demonstrating the problem?

Well, there's not a lot to post really! :)

I have a page with various controls on, some of which AutoPostBack, along with an Atlas ScriptManager and an register assembly directive at the top of my page. I then have the ConfirmButtonExtender control:

<cc1:ConfirmButtonExtenderID="ConfirmButtonExtender1"runat="server">
<cc1:ConfirmButtonPropertiesTargetControlID="Button1"ConfirmText="Are you sure you want to copy?"/>
<cc1:ConfirmButtonPropertiesTargetControlID="Button1"ConfirmText="Are you sure you want to delete?"/>
</cc1:ConfirmButtonExtender>

And as I said, it works perfectly when the page first loads but not at all after it posts back to itself, be that by e.g. changing pages on a GridView, selecting from a DropDownList or whatever. What confuses me is that it does work when the page is first loading, so presumably there's nothing that wrong with the code!

I've tried it with just the one ConfirmButtonProperties as well, still the same problem.

Any thoughts would be much appreciated!

Thanks,
Dale


Please post a complete page that demonstrates your problem with as few elements as possible - we want to be able to see the same problem to investigate it. Thanks!