My ASP.NET application originally had a button that triggered VB.NET code execution on the server when clicked.
Recently, there have been changes to the requirements and I've added a new menu that should replace the functionality of the old VB button. After receiving some guidance from Stack Overflow, I was able to manipulate some javascript that performs a postback and runs the button's code. Initially, I thought I could just hide the button and still access its on_click event through JavaScript. However, things did not go as planned!
Now, I find myself in a situation where I need to call a VB sub either from JavaScript or AJAX (as per my boss's instructions). Unfortunately, I am clueless about how to achieve this.
If anyone could provide me with some guidance on how to call a VB.NET subroutine from AJAX or JavaScript on the client-side, I would greatly appreciate it.
Thank you in advance, Jason