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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is razor? : asp.net mvc

743


What is the difference between session and viewstate in asp.net?

833


What is voluum?

732


Is asp.net a programming language or framework?

750


Which protocol is used to call web service?

728


Why is global asax is used for?

709


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

748


What is AutoPostback?

784


Which two new properties are added in asp.net 4.0 page class?

693


Explain the use of view state?

746


What is .net framework and what are the main components of it?

562


What are the new navigation controls in asp.net 2.0?

735


What are the Types of session management in ASP.NET

750


In early binding will the method invoked on com component will verify it?s existance in the system or not ?

2362


What is the difference between WindowsDefaultLocation and WindowsDefaultBounds?

894