Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Caching Images used with the Image Button Control

Status
Not open for further replies.

GUIGUY7

Programmer
Sep 3, 2008
1
US
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>
-------------------------------------------------------

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top