returning variable from javascript function to C#.net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bhavin

    returning variable from javascript function to C#.net

    I want to return an integer value from javascript to my .net code.
    My javascript returns is :

    function getIndex() {
    ----
    ----
    return (currentIndex);
    }

    My C# code is:

    htmlwindow2clas s newWindow;
    newWindow.execS cript("getIndex ()", "javascript ");

    I want my C# code to accept the parameter "currentInd ex" returned from
    javascript. Any help.? Thanx in advance.
  • kaeli

    #2
    Re: returning variable from javascript function to C#.net

    In article <fc1693e8.03091 80234.b0af53d@p osting.google.c om>,
    luckybee@indiat imes.com enlightened us with...[color=blue]
    >
    > htmlwindow2clas s newWindow;
    > newWindow.execS cript("getIndex ()", "javascript ");
    >
    > I want my C# code to accept the parameter "currentInd ex" returned from
    > javascript. Any help.? Thanx in advance.
    >[/color]

    It's not easy.





    -------------------------------------------------
    ~kaeli~
    Hey, if you got it flaunt it! If you don't, stare
    at someone who does. Just don't lick the TV screen,
    it leaves streaks.


    -------------------------------------------------

    Comment

    Working...