Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 13th, 2009, 03:17 AM
Registered User
 
Join Date: Jun 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Call JS from CS file

How to call the JavaScript function in C# file in the ASP.Net at the run time.
 
Old June 13th, 2009, 07:28 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 166
Thanks: 2
Thanked 33 Times in 33 Posts
Default

Hi Amit,

I'm not sure what you mean - JavaScript is run on the client by the browser and ASP.NET is run on the web server. You probably want to post your question here - http://p2p.wrox.com/javascript-how-87/ - and add some example code of what you are trying to do.

Phil
 
Old June 13th, 2009, 02:15 PM
jminatel's Avatar
Wrox Staff
Points: 18,059, Level: 58
Points: 18,059, Level: 58 Points: 18,059, Level: 58 Points: 18,059, Level: 58
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Posts: 1,906
Thanks: 62
Thanked 139 Times in 101 Posts
Default

I moved the post.
__________________
Jim Minatel
Associate Publisher, WROX - A Wiley Brand
Did someone here help you? Click on their post!
 
Old June 15th, 2009, 02:10 AM
Registered User
 
Join Date: Jun 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by AmitGuptaIT View Post
How to call the JavaScript function in C# file in the ASP.Net at the run time.
 
Old June 15th, 2009, 02:17 AM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Did you *READ* Philip's answer??

Quote:
JavaScript is run on the client by the browser and ASP.NET is run on the web server....
Which means your question may not make sense. You can *NOT* call code on the client from code that is on the server. Period.

Quote:
and add some example code of what you are trying to do.
So where is the example code??





Similar Threads
Thread Thread Starter Forum Replies Last Post
To include a js file into another js file jdang67 Javascript 4 February 28th, 2008 03:32 AM
how to call .cs file into another application ravi_bachwala ASP.NET 1.0 and 1.1 Basics 0 June 19th, 2007 07:30 AM
SQL in .cs file the_dude ADO.NET 2 January 27th, 2007 04:37 AM
Prb with js function call inside flash using XSL schander10 XSLT 3 September 14th, 2004 07:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.