ASP.NET/HTML: HTML button's onClick property inside ASP.NET (.cs)

前端 未结 5 1730

I just wanna find out if there\'s a way to put my onClick event inside .cs:

5条回答
  •  旧时难觅i
    2020-12-14 08:51

    I know it's late but i lost so much time on this problem. I was setting InnerHtml of a div with buttons. You need to add type="submit" to your button if you want it to work.

提交回复
热议问题