ui:
复制代码 代码如下:
<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=update&ApplicationID=<%#Eval("ApplicationID") %>">
<img style="border: 0" width="12" height="12" alt="Update" src="/UploadFiles/2021-04-02/edit.png"></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>

复制代码 代码如下:
<asp:TemplateField HeaderText="View">
<ItemTemplate>
<a href="DraftVesselOrderDetail.aspx?ServiceID=<%#Eval("Number") %>&TripSelectedIndex= <%# Container.DataItemIndex %>">
<img style="border: 0" alt="View" src="/UploadFiles/2021-04-02/preview.gif"></ItemTemplate>
</asp:TemplateField>

Code:
复制代码 代码如下:
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=view&ServiceID=" + serviceId + "&FromPage=Order&GridPageIndex=" + serviceId);
break;
}
}
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!