Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从动态链接按钮将参数传递给单击事件处理程序?我不想使用命令事件。还有其他方法可以做到这一点吗?
使用视图状态。将您的参数存储在 ViewState 中,然后在您处理的事件中访问它们:
link += new.EventHandler(this.link_Click); ViewState[Param 1]="Value";