Is there a way to add an onclick event to an ASP.NET Label server control?

前端 未结 10 1053
不思量自难忘°
不思量自难忘° 2020-12-15 03:30

I wanted to do something like this:

My Label
10条回答
  •  醉酒成梦
    2020-12-15 04:03

    As far as I know that's impossible. Label control emits > element which is “unclickable” on the server side. You would need to replace your Label control with a LinkButton.

提交回复
热议问题