see07
Regular
Hello:
I need to send some parameters from C# to a JavaScript function, but when I run my project is generating an error xxxxxxx is not defined. Where xxxxxxxx is first parameters value.
My script in C# is:
string pru = "<script language = javascript> MakePage(" + Nombre + "," + Ciudad + "," + Compa + "," + Edad + ");</script>";
if(!this.IsStartupScriptRegistered("Pb"))
{
Page.RegisterStartupScript("Pb", pru);
}
My JavaScript function is:
function MakePage(name,town,roonmate,age)
{
-------
-----
-----
}
What is wrong with my code?
Ill appreciate your help.
A.L.
I need to send some parameters from C# to a JavaScript function, but when I run my project is generating an error xxxxxxx is not defined. Where xxxxxxxx is first parameters value.
My script in C# is:
string pru = "<script language = javascript> MakePage(" + Nombre + "," + Ciudad + "," + Compa + "," + Edad + ");</script>";
if(!this.IsStartupScriptRegistered("Pb"))
{
Page.RegisterStartupScript("Pb", pru);
}
My JavaScript function is:
function MakePage(name,town,roonmate,age)
{
-------
-----
-----
}
What is wrong with my code?
Ill appreciate your help.
A.L.