how can we use java script message alert with asp.net with
useing vb.net coding show full process with its coading



how can we use java script message alert with asp.net with useing vb.net coding show full process ..

Answer / me

To work with javascript in ASP.NET, the best way to do it,
is using the Page.ClientScript object at some point.

For instance, if you want to show an alert box when the
page is finished loading, use this:

string javascript = "alert('Finished loading!');"
Page.ClientScript.RegisterStartupScript(typeof
(string), "key", javascript,true);

The ClientScript object has other methods, like
RegisterClientScriptBlock, RegisterClientScriptInclude,
RegisterExpandoAttribute and so on, which all allow you to
add javascript to the page in different ways.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What is a module code?

0 Answers  


What are the variable naming conventions in javascript?

0 Answers  


What is the difference between programing language and scripting language.?

3 Answers   Reliance, TCS,


How many types of data types are there?

0 Answers  


Who introduced javascript?

0 Answers  






How can you create an Array in JavaScript?

0 Answers  


How to create the namespace in javascript?

0 Answers  


Why is var better than let?

0 Answers  


What is the difference between HTMLCollection and NodeList?

0 Answers  


How to count the number of element in an array using javascript?

0 Answers  


Explain the term closure?

0 Answers  


What is the function of delete operator?

0 Answers  


Categories