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 表格中操作欄 按鈕圖標(biāo)不顯示的解決方法
- jquery Easyui Datagrid實(shí)現(xiàn)批量操作(編輯,刪除,添加)
- jQuery Easyui datagrid連續(xù)發(fā)送兩次請(qǐng)求問(wèn)題
- jQuery EasyUI編輯DataGrid用combobox實(shí)現(xiàn)多級(jí)聯(lián)動(dòng)
- jQuery Easyui DataGrid點(diǎn)擊某個(gè)單元格即進(jìn)入編輯狀態(tài)焦點(diǎn)移開(kāi)后保存數(shù)據(jù)
- jQuery EasyUI datagrid在翻頁(yè)以后仍能記錄被選中行的實(shí)現(xiàn)代碼
- EasyUI的DataGrid每行數(shù)據(jù)添加操作按鈕的實(shí)現(xiàn)代碼