F
F
Freedom032016-10-20 04:18:12
JavaScript
Freedom03, 2016-10-20 04:18:12

How to pass value from C# form to javascript function?

Visual Studio, C#
Have Form1 and say string page = (" https://toster.ru/ ");
Also added script.js, which runs on Form1.
How to pass page value from form to script?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rou1997, 2016-10-20
@Rou1997

a script.js script that runs on Form1.

What is it like?

V
Vitaly, 2016-10-20
@vshvydky

addEventListener we hang the change event on the element and catch it, no ajax is needed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question