1
Reply

how to execute C# code based on value returned from javascript function

Ask a question
Aman Rohilla

Aman Rohilla

14y
3.3k
1
I have C# code that I want to execute based on the value returned from javascript confirm box.



If confirm box is clicked on ok then I want my code to be executed else
not
something like this

I have a button event That I fire
Button_Event()
{
  for(i=0;i<n;i++)
  {
    if(i%2)
    {
       // Javascript Confirm Box that I want to display
        If Javascript function value ==true;
        Execute Code
        //else
        continue
    }
Javascript Function
{
}


Please help me  as soon possible

Answers (1)