kabila
Posts: 30
|
Posted: 03/15/2004, 9:09 AM |
|
I am using c#. Is there a way to call an existing javascript from the code, using custom code, i.e. from a .CS file?
I am trying to use a javascript function called StringtoExp from the functions.js file to help me with the following:
int a=1;
x="textbox" + a + ".text";
what I need is the content of textbox1.text; what I get from the above expression is "textbox1.text". On the web I found a reference to using javascript EVAL for this purpose.
I would really apprecite any help/direction.
Thanks
-Sam
|
|
|
peterr
Posts: 5971
|
Posted: 03/15/2004, 12:24 PM |
|
I don't think that you can call JavaScript on the client/browser from the server. You can do the opposite: submit something to the server from JavaScript and refresh the page.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
|