I am trying to optimize a page that renders 5 small icons per case that is pulled back from a data request. When there are a large number of cases pulled and rendered in rows on the screed there are also a set of icons fetched and rendered.
Is there a way to pre-load the images and bypass the ImageUrl property so that the set 5 icons is only fetched once with an instance of the fecthed icon rendered with each row.
Suggestions Anyone?
CODE SNIPPET -----------------------------------
<asp:ImageButton id="ibtnSnooze" runat="server" ImageUrl="~/App_Images/snooze.gif" CommandName = "Snooze"
CommandArgument = '<%# DataBinder.Eval(Container.DataItem, "MbrWorklistID") %>' AlternateText="Snooze Worklist">
</asp:ImageButton>
<asp:ImageButton ID="ibtnAccept" CommandName="Accept" ImageUrl="~/App_Images/accepted.gif" CommandArgument = '<%# DataBinder.Eval(Container.DataItem, "WorklistID") %>' AlternateText="Accept" runat="server">
</asp:ImageButton>
<asp:ImageButton ID="ibtnAssign" CommandName="Assign" ImageUrl="~/App_Images/Assign.gif" CommandArgument = '<%# DataBinder.Eval(Container.DataItem, "MbrWorklistID") %>'
AlternateText="Re - Assign Worklist" runat="server">
</asp:ImageButton>
<asp:ImageButton id="ibtnViewDetail" runat="server" CommandName = "ViewDetail" ImageUrl="~/App_Images/view.gif" CommandArgument = '<%# Eval("MbrWorklistID")+"*"+Eval("MbrID")+"*"+Eval("MbrCaseID") %>' AlternateText="View Detail">
</asp:ImageButton>
-------------------------------------------------------
Is there a way to pre-load the images and bypass the ImageUrl property so that the set 5 icons is only fetched once with an instance of the fecthed icon rendered with each row.
Suggestions Anyone?
CODE SNIPPET -----------------------------------
<asp:ImageButton id="ibtnSnooze" runat="server" ImageUrl="~/App_Images/snooze.gif" CommandName = "Snooze"
CommandArgument = '<%# DataBinder.Eval(Container.DataItem, "MbrWorklistID") %>' AlternateText="Snooze Worklist">
</asp:ImageButton>
<asp:ImageButton ID="ibtnAccept" CommandName="Accept" ImageUrl="~/App_Images/accepted.gif" CommandArgument = '<%# DataBinder.Eval(Container.DataItem, "WorklistID") %>' AlternateText="Accept" runat="server">
</asp:ImageButton>
<asp:ImageButton ID="ibtnAssign" CommandName="Assign" ImageUrl="~/App_Images/Assign.gif" CommandArgument = '<%# DataBinder.Eval(Container.DataItem, "MbrWorklistID") %>'
AlternateText="Re - Assign Worklist" runat="server">
</asp:ImageButton>
<asp:ImageButton id="ibtnViewDetail" runat="server" CommandName = "ViewDetail" ImageUrl="~/App_Images/view.gif" CommandArgument = '<%# Eval("MbrWorklistID")+"*"+Eval("MbrID")+"*"+Eval("MbrCaseID") %>' AlternateText="View Detail">
</asp:ImageButton>
-------------------------------------------------------