ui:
復(fù)制代碼 代碼如下:
asp:TemplateField HeaderText="Operation" ShowHeader="False">
ItemStyle Width="100px" />
ItemTemplate>
table width="100%">
tr>
td align="center" valign="middle">
asp:ImageButton ID="imgUpdate" CommandName="update" ToolTip="Update" ImageUrl="~/App_Themes/Images/edit.png"
runat="server" />
%--a href="ApplicationDetail.aspx?type=updateApplicationID=%#Eval("ApplicationID") %>">
img style="border: 0" width="12" height="12" alt="Update" src="../Themes/images/edit.png" />/a>--%>
/td>
td align="center" valign="middle">
nbsp;nbsp;
asp:ImageButton ID="imgDelete" CommandName="delete" ToolTip="Delete" ImageUrl="~/App_Themes/Images/del.png"
runat="server" />
/td>
/tr>
/table>
/ItemTemplate>
/asp:TemplateField>
復(fù)制代碼 代碼如下:
asp:TemplateField HeaderText="View">
ItemTemplate>
a href="DraftVesselOrderDetail.aspx?ServiceID=%#Eval("Number") %>TripSelectedIndex= %# Container.DataItemIndex %>">
img style="border: 0" alt="View" src="../../App_Themes/Images/preview.gif" />/a>
/ItemTemplate>
/asp:TemplateField>
Code:
復(fù)制代碼 代碼如下:
protected void gdvOrderList_RowCommand(object sender, GridViewCommandEventArgs e)
{
switch (e.CommandName.ToLower())
{
case "view":
var serviceId = long.Parse(e.CommandArgument.ToString());
Response.Redirect("DraftOrderDetail.aspx?type=viewServiceID=" + serviceId + "FromPage=OrderGridPageIndex=" + serviceId);
break;
}
}
您可能感興趣的文章:- Easyui Datagrid自定義按鈕列(最后面的操作列)
- easyui datagrid 表格中操作欄 按鈕圖標不顯示的解決方法
- jquery Easyui Datagrid實現(xiàn)批量操作(編輯,刪除,添加)
- jQuery Easyui datagrid連續(xù)發(fā)送兩次請求問題
- jQuery EasyUI編輯DataGrid用combobox實現(xiàn)多級聯(lián)動
- jQuery Easyui DataGrid點擊某個單元格即進入編輯狀態(tài)焦點移開后保存數(shù)據(jù)
- jQuery EasyUI datagrid在翻頁以后仍能記錄被選中行的實現(xiàn)代碼
- EasyUI的DataGrid每行數(shù)據(jù)添加操作按鈕的實現(xiàn)代碼