Last post Jun 20, 2013 02:01 AM by Binderbound
May 31, 2009 04:54 PM|ZAiNT|LINK
how can i preload the checked image, CheckedImageUrl, for a ToggleButtonExtender connected to a asp:CheckBox control when the page is first served to the client so that when the user clicks on the checkbox it doesnt flicker. i can see in fiddler
that the flicker occurs the first time the checked image is requested. any ideas?
<asp:CheckBox ID="RememberMe" runat="server" Text="Remember Me" CssClass="login_chkRememberMe" />
<cc1:ToggleButtonExtender ID="RememberMe_ToggleButtonExtender" runat="server" CheckedImageUrl="~/Images/chkbox_checked.png" Enabled="True" TargetControlID="RememberMe" UncheckedImageUrl="~/Images/chkbox_unchecked.png" ImageHeight="17" ImageWidth="18">
Jun 01, 2009 02:35 AM|svmr|LINK
Just set your checkbox Checked Property to true.
<asp:CheckBox ID="RememberMe" runat="server" Text="Remember Me" CssClass="login_chkRememberMe" Checked="true" />
Jun 07, 2009 08:01 AM|ZAiNT|LINK
Jun 20, 2013 02:01 AM|Binderbound|LINK
If I was to do that, wouldn't the unchecked image have to be loaded as well?
I am having the same issue. I want to preload images to make the control more responsive. At the moment when you click a checkbox the first time on page load, the control dissapears for about a second while the checked image is loaded. I can't set the controls
Why is pre-loading the "CheckdImageUrl" image not part of the load/init method of the control anyway? On that note, I don't want to have to extend the togglebuttonextender class if I can avoid it.