troubleshooting Question

Javascript function from code behind. of C#.NET

Avatar of swaroop_d
swaroop_d asked on
JavaScriptC#ASP.NET
21 Comments4 Solutions1051 ViewsLast Modified:
Hello All,
I have to create a javascript function dynamically from a code behind in C#.NET.
How do I achieve this?

To be more clear..I have a master page which has two user controls..lets say left and right.
On a button click event on the left user control...after all the processing of the left control, i am generating some values. Now, I have to pass these values to a javascript function (which i will have to do from codebehind itself). Which means i have to develop a javacript function in code behind which will have values dynamically..different everytime. Now, I need to pass this function to the right user control to display.
What are the ways to achieve all these steps?
I am confused as to where i should put all the code?

Your guidance will help..

Thanks in advance.
ASKER CERTIFIED SOLUTION
sybe

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 4 Answers and 21 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 21 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros