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

Why would anyone need to implement their own hashtable or linked list?

2437


What is asp.net? How is it different from asp?

541


What is base class of .net?

538


What is the current version of asp.net?

493


How does a content page differ from a master page?

508






Which property is used to identify the Page is Post Back in ASP.NET?

555


What’s the use of “GLOBAL.ASAX” file?

598


Distinguish between Server-side and Client-side code with its functionality?

624


1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5

1761


What is ispostback method in asp.net?

556


What is directive in asp net?

544


Define static constructor?

557


What is autopostback in dropdownlist in asp net?

532


What are the media types of http requests and response?

511


How can we create custom controls in asp net?

532