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

后端 未结 2 1913
故里飘歌
故里飘歌 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条回答
  • 2021-01-28 21:48

    Use repeater control or Datalist control to list the <li> tag. Inside <li> take linkbutton. then use itemcommand method to handle it

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题