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

In my code i have 3 tables,i have to insert 3 tables data using single insert query so that i wrote transations in a sp.but what my problem is,in those 3 tables i have to include my empId from another table.when i'm passing values im getting error at this EmpId. how can i solve this error to execute insert query? plesae tell me the solution...

1 Answers  


How to migrate from sqlserver 2005 to sql server 2000 (every one know reverse process of that )

2 Answers   Cap Gemini,


What is rending process in ASP.NET?

0 Answers   Sans Pareil IT Services,


How to use class library reference in asp.net project? Can you give me the example with source Class library haves classes like Database, insert, update, delete, reflection how can i use the database class connection in insert class to insert the record in to the Main Project in asp.net.

1 Answers  


What are session state modes? List some of the important session state modes of asp.net.

0 Answers  






Can user control be stored in library?

0 Answers  


What does a switch do?

0 Answers  


What is the difference between the get method () and post method ()?

0 Answers  


What are the different types of proxy patterns?

0 Answers  


How would one do a deep copy in .NET?

6 Answers   TCS,


Explain file-based dependency and key-based dependency.

0 Answers   MindCracker,


Can we make a class with class with same;suppose public class abc { public class abc { } }

1 Answers  


Categories