Solved

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

Posted on 2014-04-14
4
348 Views
Last Modified: 2014-04-14
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
Comment
Question by:murbro
  • 2
  • 2
4 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 39999003
Do you mean how do you call a server-side method from client-side javascript?
0
 

Author Comment

by:murbro
ID: 39999013
Yes. Thanks
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 39999019
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
 

Author Closing Comment

by:murbro
ID: 39999602
Thanks for the direction. I'll explore further
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question