aspx页代码:
<%@ Page Language="VB" MasterPageFile="~/products.master" EnableEventValidation="false" AutoEventWireup="false" CodeFile="more_newproducts.aspx.vb" Inherits="more_newproducts" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="width: 576px">
<tr>
<td style="width: 576px">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataKeyNames="productid" GridLines="Horizontal"
Width="576px" Font-Size="13px" HorizontalAlign="Center" CellPadding="0" AllowPaging="True">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID="Image1" runat="server" Height="80px" ImageUrl='<%# "~/upload/"+Eval("s_imgurl") %>'
Width="80px" BorderColor="Silver" BorderStyle="Double" BorderWidth="3px" />
</ItemTemplate>
<ItemStyle Width="90px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="productid" InsertVisible="False" SortExpression="productid" Visible="False">
<ItemTemplate>
<asp:Label ID="lblproid" runat="server" Text='<%# Bind("productid") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="productname" SortExpression="productname" Visible="False">
<ItemTemplate>