国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開(kāi)通VIP
GridView增刪改查之RowCommand事件
前臺(tái)頁(yè)面代碼:
 1.在GridView模板列中,添加LinkButton控件(只要是模板控件就行);
 2.在LinkButton控件的屬性:
             CommandName屬性:del/editor/search/add      //可以自定義
            CommandArgument屬性:<%#Eval("ID")%>要綁定的值
 
 
后臺(tái)CS代碼:
    protected void gdvBusiness_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        switch (e.CommandName.ToLower())
        {
            case "del"://刪除
                BusinessManager.Del(Convert.ToInt32(e.CommandArgument));
                BindGridView();
                break;
            case "editor"://修改
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>location.href='BuesinessEditor.aspx?id=" + int.Parse(e.CommandArgument.ToString()) + "';</script>");
                break;
            case "search"://查詢
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>location.href='BuesinessInfo.aspx?id=" + int.Parse(e.CommandArgument.ToString()) + "';</script>");
                break;
            case "add"://增加
                Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>location.href='BuesinessAdd.aspx';</script>");
                break;
            default:
                break;
        }
    }
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
.NET編程小知識(shí)點(diǎn)(更新中...)
ASP.NET(C#)不提示直接關(guān)閉當(dāng)前頁(yè)面
把Excel數(shù)據(jù)導(dǎo)入數(shù)據(jù)庫(kù)
新浪接口API調(diào)用
使用javascript動(dòng)態(tài)調(diào)用樣式表代碼
ASP.NET打開(kāi)新頁(yè)面而不關(guān)閉原來(lái)的頁(yè)面
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服