CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.

YesSoftware Forums -> CodeCharge Studio -> .NET

 calling a javascript from the code

Print topic Send  topic

Author Message

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.
View profile  Send private message

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
View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.