1
Answer

Set c# value to javascript

Ask a question
Pankaj Singh

Pankaj Singh

12y
2.1k
1
Hi,

I want ot send value from C# to Javascript but it is not working.

In C# i have a int value as

int a=25;

and i want to access this a value in javascript.

i am using as

IN C#

int a=25;

TextBox1.Text=a.Tostring();

And In Jscript

Var x = parseInt(document.getElementById(' TextBox1 ').value);

but it is not working.

please help me

Thanks in advance

Pankaj

Answers (1)