Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2014-04-14
4
Medium Priority
?
374 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:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Murray Brown
ID: 39999013
Yes. Thanks
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 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:Murray Brown
ID: 39999602
Thanks for the direction. I'll explore further
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

618 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