首页 > 其他分享 >string id = e.CommandArgument.ToString(); 是什么意思?

string id = e.CommandArgument.ToString(); 是什么意思?

时间:2022-09-30 15:46:55浏览次数:51  
标签:CommandArgument string 控件 Button 参数 ToString id

前台删除按钮中设置的参数。  CommandName="delete" CommandArgument='<%#Eval("id")%>'

Button控件使用的是Command事件,该事件可以在【CommandEventArgs e】e中传递CommandName和CommandArgument这两个参数【这两个参数是Button控件的属性】,在你的程序里就是提取了这个参数里的字符串内容。

标签:CommandArgument,string,控件,Button,参数,ToString,id
From: https://www.cnblogs.com/Dongmy/p/16745071.html

相关文章