how to check li click events to code behind using asp.net

后端 未结 2 1916
故里飘歌
故里飘歌 2021-01-28 21:25

I have list li,I want to know which option in clicked to code behind.How can i possible

  • &
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-28 21:51

    You cannot do this. After a page has finished processing and has been sent to a browser as the HTTP response, server can do nothing with this page.

    You need to use POST form to inform the server about your choice. Or you can use JavaScript and AJAX, if you want it to be done without form submitting and reloading.

提交回复
热议问题