簡體   English   中英

如何基於gridview做出不同的按鈕動作?

[英]How to make different button action based on gridview?

我有一項任務,根據gridview的列上的值進行不同的按鈕操作。

這是當“狀態”列的值為“完成”時我需要運行的代碼

string controllerPath = System.Web.Configuration.WebConfigurationManager.AppSettings["ControllerPath"];
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = controllerPath;
psi.UseShellExecute = false;
//psi.WorkingDirectory = Environment.CurrentDirectory;
Process proc = Process.Start(psi);

string msg = "AdHoc update executed";
showSaveNotification(msg);

這是“狀態”列顯示“正在等待”或“待處理”時的代碼。

string msg = "You can't update for now.";
showSaveNotification(msg);

我是新手,因此需要您的幫助。

先感謝您。 抱歉我的英語不好。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM