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

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

I wanted to do something like this:

My Label
10条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 03:57

    Another hack would be to use a hidden link or button with style="display:none;" and trigger the click on the server control from a javascript function in the span.

    Something like this:

    
    My Label
    

提交回复
热议问题