前台代码//
///
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Server=PC2011081212UBE;database=Test;uid=sa;pwd="
SelectCommand="SELECT * FROM [Picture]"></asp:SqlDataSource>
<asp:DataList ID="DataList1" runat="server" Style="font-size: smaller"
RepeatColumns="2"
RepeatDirection ="Horizontal"
Width="938px" CellPadding="4"
ForeColor="#333333">
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<ItemStyle BackColor="#E3EAEB" />
<ItemTemplate>
<table style="border: solid 1px black; width: 420px;" cellpadding="0"
cellspacing="0">
<tr>
<td rowspan="4"
style="border-right: solid 1px black; border-bottom: solid 1px black"
class="style2">
<%-- <img src='<%# "Handler.ashx?id="+Eval("Picid") %>' height="150px" style="width: 250px; height: 217px" />--%>
<asp:Image ID="Image1" runat="server" height="150px" style="width: 250px; height: 217px" ImageUrl='<%# "Handler.a
///
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Server=PC2011081212UBE;database=Test;uid=sa;pwd="
SelectCommand="SELECT * FROM [Picture]"></asp:SqlDataSource>
<asp:DataList ID="DataList1" runat="server" Style="font-size: smaller"
RepeatColumns="2"
RepeatDirection ="Horizontal"
Width="938px" CellPadding="4"
ForeColor="#333333">
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<ItemStyle BackColor="#E3EAEB" />
<ItemTemplate>
<table style="border: solid 1px black; width: 420px;" cellpadding="0"
cellspacing="0">
<tr>
<td rowspan="4"
style="border-right: solid 1px black; border-bottom: solid 1px black"
class="style2">
<%-- <img src='<%# "Handler.ashx?id="+Eval("Picid") %>' height="150px" style="width: 250px; height: 217px" />--%>
<asp:Image ID="Image1" runat="server" height="150px" style="width: 250px; height: 217px" ImageUrl='<%# "Handler.a