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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What percentage of websites use javascript?

677


What is break and continue statements?

670


what does javascript null mean?

718


Do you need to declare variables in javascript?

653


What are global variables? How are these variable declared and what are the problems associated with using them?

702


What are the application of javascript?

677


List html dom mouse events?

664


What is the function of delete operator?

725


Difference between Client side JavaScript and Server side JavaScript?

856


What is event in javascript?

657


how to validate the date(dd/mm/yyyy)using regular expression in javascript? It should also satisfy the leap year feb 29 problem. Please help me.

5910


How do you target a specific frame from a hyperlink?

663


How are DOM utilized in JavaScript?

848


Is there any ide for javascript?

713


What is the use of 'bind' method in JavaScript?

752