Hi
I have a problem.I have a 'demo' controller with 'demo' action what get a parameter, and i want to give them in javascript.
aspx:
<script type="text/javascript">
function openDefault(miez) {
var manager1 = $find("<%= RadWindowManager2.ClientID %>");
var str = "/demo/demo/" + miez;
manager1.open(str3, "RadWindow2");
}
</script>
it is work's if i give them one parameter, but example miez="par1 par2"; it's doesn't works. (of course, becouse /demo/demo/park1 par2
address doesn't exists).
So i tryed another way:
aspx:
<script type="text/javascript">
function openDefault(miez) {
var manager1 = $find("<%= RadWindowManager2.ClientID %>");
manager1.open('<% Url.Action("demo", "demo") %>', "RadWindow2");
}
</script>
And this works without parameters. The problem is that i don't know how can i give parameter this form, if parameters is javacript variable.
manager1.open('<% Url.Action("demo", "demo",new{id="par1"}) %>', "RadWindow2");
The question is, how can i 'par1' to replace onto the value of 'miez'????
Ahead thank you for the help.