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

under which namespaces connection strings can be defined?

4 Answers  


Describe the events in the life cycle of a web application.

0 Answers  


What are the two Layouts supported by a Web form in ASP.NET?

0 Answers   MCN Solutions,


What is application in asp net?

0 Answers  


How do u deploy ur project?

0 Answers   HCL, Microsoft,






If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ?

0 Answers   DELL,


Using Statement usage in C#

2 Answers  


What is SOAP, UDDI and WSDL ?

2 Answers   Infosys, Network, TCS, Wipro,


How does a web application session work?

0 Answers  


To get the values in two different controls to match which control you use it?

0 Answers   Siebel,


What does the .webpart file do?

0 Answers  


How information about the user's locale can be accessed?

0 Answers   MindCracker,


Categories