can i call the java script to code behind file?if yes how?

Answers were Sorted based on User's Feedback



can i call the java script to code behind file?if yes how?..

Answer / swapna

we can call a javascript function from code behind by using

ScriptManager.RegisterStartupScript(this, GetType(),
UniqueID, "alert('asdf');", true);

Is This Answer Correct ?    17 Yes 1 No

can i call the java script to code behind file?if yes how?..

Answer / .net funda

yes u can do it.
write a javascript inside a string.
call Page.ClientScript.RegisterClientScriptBlock() method.

Is This Answer Correct ?    4 Yes 0 No

can i call the java script to code behind file?if yes how?..

Answer / vivek

using Microsoft ajax library and creating a web method we can call a code behind code using java script.

Is This Answer Correct ?    2 Yes 0 No

can i call the java script to code behind file?if yes how?..

Answer / tejkrishna

yes. for custom validation control's server validate event.

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More ASP.NET Interview Questions

What is a 401 redirect?

0 Answers  


14. What are your Future Plans for Swatz Oils GROUP U.K?

0 Answers   CSC, Swatz Oils, TCS,


hi im shailendra singh my question is how we deploye the data base

3 Answers   HCL,


How to kill more than one session variables at a time

9 Answers   iSoft,


How do you implement postback with a text box? What is postback and usestate?

1 Answers  






What is windows active directory authentication?

0 Answers  


Why viewstate is used in asp.net?

0 Answers  


How to configure a website without using IIS.

3 Answers   CGI,


What is parse in asp.net?

0 Answers  


What are the different ways of processing data in ASP page in the server side (like Forms, QueryStrings etc)?

1 Answers  


if we establish the cinnection with connection string tag in web.config file,can i go for encrypt and decrypt with that?

1 Answers  


How do you create a master page?

0 Answers  


Categories