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.
Our community of experts have been thoroughly vetted for their expertise and industry experience.