[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 377
  • Last Modified:

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() {

        }

// ]]>
0
Murray Brown
Asked:
Murray Brown
  • 2
  • 2
1 Solution
 
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
 
Carl TawnSystems 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
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks for the direction. I'll explore further
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now