主頁(yè) > 知識(shí)庫(kù) > datagrid行內(nèi)按鈕(更新/刪除等)操作實(shí)現(xiàn)代碼

datagrid行內(nèi)按鈕(更新/刪除等)操作實(shí)現(xiàn)代碼

熱門(mén)標(biāo)簽:Mysql連接數(shù)設(shè)置 電子圍欄 Linux服務(wù)器 銀行業(yè)務(wù) 阿里云 團(tuán)購(gòu)網(wǎng)站 科大訊飛語(yǔ)音識(shí)別系統(tǒng) 服務(wù)器配置
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)代碼

標(biāo)簽:江蘇 廣元 衡水 蚌埠 衢州 棗莊 大理 萍鄉(xiāng)

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《datagrid行內(nèi)按鈕(更新/刪除等)操作實(shí)現(xiàn)代碼》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話(huà)咨詢(xún)

    • 400-1100-266