returning variable from javascript function to C#.net

B

bhavin

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:

htmlwindow2class newWindow;
newWindow.execScript("getIndex()", "javascript");

I want my C# code to accept the parameter "currentIndex" returned from
javascript. Any help.? Thanx in advance.
 
K

kaeli

htmlwindow2class newWindow;
newWindow.execScript("getIndex()", "javascript");

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

It's not easy.

http://tinyurl.com/nsx8
http://tinyurl.com/nsxd


-------------------------------------------------
~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.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,093
Messages
2,570,607
Members
47,227
Latest member
bluerose1

Latest Threads

Top