954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Calling VB.NET function (Server Side) on Javascript function (Client Side)

Hello, I want to know how can I call VB.NET (Server Side) function to Javascript (Client Side). I want to insert function here in my Javascript code;

function ConfirmSave() 
  
{  
  
var Ok = confirm('Proceed to Save?'); 
  
if(Ok==true) 
 return true; 
else if(Ok!=true) 
 return false; 
  
  
 }


I want to exefcute the Save() function from my VB.Net code when I return true. Please Help me. I need it so badly. Thank you.

maii_18
Newbie Poster
5 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

If you don't want to reload the page doing this, you probably need AJAX.

twiss
Veteran Poster
1,005 posts since Apr 2010
Reputation Points: 177
Solved Threads: 101
 

how can I do that?

maii_18
Newbie Poster
5 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 
twiss
Veteran Poster
1,005 posts since Apr 2010
Reputation Points: 177
Solved Threads: 101
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: