GridView
...
<asp:GridView ID="grdList" runat="server" AutoGenerateColumns="False" OnRowUpdating="grdList_RowUpdating"
OnRowCancelingEdit="grdList_RowCancelingEdit" OnRowEditing="grdList_RowEditing">
<Columns>
<asp:BoundField DataField="绑定字段名称" HeaderText="标题1" />
<asp:TemplateField HeaderText="标题2">
<ItemTemplate>
<asp:Label runat="server" Text='<%#Eval("绑定字段")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="标题2(可编辑列)">
<ItemTemplate>
<asp:Label runat="server" Text='<%#Eval("绑定字段")%>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<input type="text" runat="server" value='<%#Eval("绑定字段")%>'/>
</EditItemTemplate>
</asp:TemplateField>
<asp:CommandField ShowEditButton="True" />
</Columns>
</asp:GridView>
<asp:GridView ID="grdList" runat="server" AutoGenerateColumns="False" OnRowUpdating="grdList_RowUpdating"
OnRowCancelingEdit="grdList_RowCancelingEdit" OnRowEditing="grdList_RowEditing">
<Columns>
<asp:BoundField DataField="绑定字段名称" HeaderText="标题1" />
<asp:TemplateField HeaderText="标题2">
<ItemTemplate>
<asp:Label runat="server" Text='<%#Eval("绑定字段")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="标题2(可编辑列)">
<ItemTemplate>
<asp:Label runat="server" Text='<%#Eval("绑定字段")%>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<input type="text" runat="server" value='<%#Eval("绑定字段")%>'/>
</EditItemTemplate>
</asp:TemplateField>
<asp:CommandField ShowEditButton="True" />
</Columns>
</asp:GridView>
ListView
...
<asp:ListView ID="lsvList" runat="server" OnItemCommand="lsvList_ItemCommand">
<LayoutTemplate>
<table>
<tr>
<th>序 号</th>
<th>标 题</th>
<th>操 作</th>
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>
<tr>
<td><%#Container.DataItemIndex+1%></td>
<td><%#Eval("绑定字段")%></td>
<td>
<span οnclick="windows.open(url地址);">修改</span>
<asp:LinkButton ID="btnDel" runat="server" CommandName="DEL" CommandArgument='<%#Eval("ID")%>'
CausesValidation="false" OnClientClick="return confirm('确认删除?');" >删除</asp:LinkButton>
</td>
</tr>
</ItemTemplate>
</asp:ListView>
<asp:ListView ID="lsvList" runat="server" OnItemCommand="lsvList_ItemCommand">
<LayoutTemplate>
<table>
<tr>
<th>序 号</th>
<th>标 题</th>
<th>操 作</th>
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>
<tr>
<td><%#Container.DataItemIndex+1%></td>
<td><%#Eval("绑定字段")%></td>
<td>
<span οnclick="windows.open(url地址);">修改</span>
<asp:LinkButton ID="btnDel" runat="server" CommandName="DEL" CommandArgument='<%#Eval("ID")%>'
CausesValidation="false" OnClientClick="return confirm('确认删除?');" >删除</asp:LinkButton>
</td>
</tr>
</ItemTemplate>
</asp:ListView>
Repeater
...
<table >
<asp:Repeater ID="rptList" runat="server" onitemcommand="rptList_ItemCommand">
<HeaderTemplate>
<tr align="center">
<th>标题1</th>
<th>标题2</th>
<th>操 作</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%#Eval("绑定字段1")%></td>
<td><%#Eval("绑定字段2")%></td>
<td>
<span class="textbtn_xg" οnclick="windows.open(url地址);">修改</span>
<asp:LinkButton ID="btnDel" runat="server" CommandName="DEL" CommandArgument='<%#Eval("id")%>'
OnClientClick="return confirm('确认删除?');">删除</asp:LinkButton>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
<table >
<asp:Repeater ID="rptList" runat="server" onitemcommand="rptList_ItemCommand">
<HeaderTemplate>
<tr align="center">
<th>标题1</th>
<th>标题2</th>
<th>操 作</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%#Eval("绑定字段1")%></td>
<td><%#Eval("绑定字段2")%></td>
<td>
<span class="textbtn_xg" οnclick="windows.open(url地址);">修改</span>
<asp:LinkButton ID="btnDel" runat="server" CommandName="DEL" CommandArgument='<%#Eval("id")%>'
OnClientClick="return confirm('确认删除?');">删除</asp:LinkButton>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>