Pankaj Singh

Pankaj Singh

  • NA
  • 97
  • 0

Set c# value to javascript

Jan 20 2012 12:21 PM
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)