ASP.net Call a VB.net procedure from a button

Hi
I have the following button in my ASP.net VB.net project
When I click on it it creates the code further down
How do I call a VB.net procedure from this?

<button id="button10"  class="myHoverButton" onclick="return button10_onclick()">Who needs aesthetic dentistry</button>


// <![CDATA[

        function button10_onclick() {

        }

// ]]>
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
 
Carl TawnConnect With a Mentor Systems and Integration DeveloperCommented:
OK. What do you need to do in the server-side method? To call it from the client it would need to be a WebMethod, which means it has to be Shared, which restricts what context based information you have available.

Otherwise you'd have to perform a full GET request and strip out the information you want from the result - if you expect a result that is.
0
 
Carl TawnSystems and Integration DeveloperCommented:
Do you mean how do you call a server-side method from client-side javascript?
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Yes. Thanks
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks for the direction. I'll explore further
0
All Courses

From novice to tech pro — start learning today.