How to call vb.net code behind function using javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • visweswaran2830
    New Member
    • Nov 2009
    • 92

    How to call vb.net code behind function using javascript

    Hi,

    I have a function in aspx.vb (code behind fucntion). Now I want to call this function using javascript... How can I call?
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    you cannot directly call code behind - code behind is executed serverside so you would need to do a request - i think with that ASP.net stuff it's called 'postBack' - so that the code behind would be invoked ... or use an AJAX call to do the request

    kind regards

    Comment

    Working...