Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to call a javascript function from a controller

For eg:
i have two controllers like A and B

i'm calling Controller 'B' from controller 'A' and i need to return a value 'x' from controller 'B' to 'A' using javascript

i am using
return Content("<script language='javascript' type='text/javascript'>window.location='javascript:history.go(-2)'</script>");
for returning ,so i need to return the value 'x' along with this.

is there any way to include a javascript function inside this??
Posted

1 solution

Hope this[^] helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900