About 50 results
Open links in new tab
  1. c# - Calling JavaScript Function From CodeBehind - Stack Overflow

    Apr 20, 2011 · Can someone provide good examples of calling a JavaScript function From CodeBehind and Vice-versa?

  2. How to call a C# function from JavaScript? - Stack Overflow

    Aug 26, 2013 · I want to call CsharpFunction, a C# function in code-behind, from JavaScript. I tried the code below but whether the JavaScript condition is True or False, CsharpFunction was called …

  3. Call JavaScript function from C# - Stack Overflow

    Nov 28, 2015 · don't getting you. would you want to call js function in C# code file? or Code file function to JS?

  4. How to call javascript function from c# - Stack Overflow

    Jan 23, 2012 · I like to call a JavaScript function from c#. Can any one can give me code snippet. More detail... I have a asp.net page which has a asp button. when i click that button, i like to call javascript

  5. How to call C# method from Javascript in ASP.NET Core?

    Jun 29, 2019 · So I call a JavaScript function on the oninput event of the textbox and now the question is how do I call my C# method FindUser() in Index.cshtml.cs from that JS function? I have tried a lot of …

  6. Calling Javascript function from Code Behind in C#

    0 sample code, which will include javascript file and then call method from the code behind. MyJSFile.js

  7. c# - Call ASP.NET function from JavaScript - Stack Overflow

    Dec 5, 2016 · I'm writing a web page in ASP.NET. I have some JavaScript code, and I have a submit button with a click event. Is it possible to call a method I created in ASP with JavaScript's click event?

  8. Blazor execute C# and JS function in one button onclick event

    Jul 25, 2022 · 1 There are a couple of ways you can fire both C# and javascript handlers for one DOM event 1. Rely on Event Bubbling Put the C# eventhandler on your button or control as normal. Wrap …

  9. How to call C# function from javascript in the new Blazor .NET 8 Web ...

    Nov 16, 2023 · This is my JavaScript function in app.js that when window is resizing it call c# function that log a message in console window.addEventListener('resize', function () { …

  10. c# - How to call code behind server method from a client side ...

    Apr 29, 2011 · 37 I am having an JavaScript function for a HTML button click event in ASPX page. And a server Method in its code behind page. Now I want to call the server method from the JavaScript …