471,071 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

call JavaScript function from C#


I am trying to call a javscript function from c#. But it is not getting called. The error comes up saying funtionname is not defined even though it is defined and visible in page source.

i have used Response.Write("<script language='javascript'>functionname();</script>");

and page.registerclientscriptblock but both have the same problem.

Any help is appreciated.
Apr 28 '07 #1
4 1314
I am also have the same doubt, Please reply if you know the answer.
May 21 '07 #2
I have the sameI have the sameI have the sameI have the sameI have the sameI have the sameI have the sameI have the sameI have the same
May 21 '07 #3
have a look over this link
May 22 '07 #4
try this code
At the
<script language='javascript'>
function Hello()
alert("Hello Friends");


Call this function at Page_Load()
May 22 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by hrishikesh | last post: by
1 post views Thread by Sky Kim | last post: by
2 posts views Thread by hibaru | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.