ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - Smart Image - With SqlDataSource

Images from the database:

ASP.NET:

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
    ConnectionString="<%$ ConnectionStrings:WebsiteConnectionString %>"
    ProviderName="<%$ ConnectionStrings:WebsiteConnectionString.ProviderName %>"
    SelectCommand="SELECT TOP 4 fldDescription, fldContent FROM Editor_tbImage">
</asp:SqlDataSource>
Images from the database:
<br /><br />
<div style="width:600px;">
    <asp:Repeater id="imageset" runat="server" DataSourceID="SqlDataSource1">
        <ItemTemplate>
            <obout:SmartImage Title='<%# Eval("fldDescription") %>' BinaryValue='<%# Eval("fldContent") %>'
                                Height="200px" OptimizeMode="Fit" runat="server" ID="smImage" />
        </ItemTemplate>
    </asp:Repeater>
</div>
    

"I've scanned the Internet for ASP.NET controls and yours are *BY FAR* the most featured and attractive (not to mention they don't crash, unlike some others!). Building the site around your component suite gave us the competitive edge."

Shane Mitchell
University of Queensland (Australia)

Random testimonial   All testimonials