By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,961 Members | 1,803 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,961 IT Pros & Developers. It's quick & easy.

returning variable from javascript function to C#.net

P: n/a
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.
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <fc*************************@posting.google.com> ,
lu******@indiatimes.com enlightened us with...

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
-------------------------------------------------
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.