📜  按钮命令字段命令参数传递文本框 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:22.079000             🧑  作者: Mango

代码示例1
Button btnSender = (Button)sender;
TextBox txt_TextBox = (TextBox)btnSender.Parent.FindControl("TextBox1");
string Text = txt_TextBox.Text;