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
What percentage of websites use javascript?
What is break and continue statements?
what does javascript null mean?
Do you need to declare variables in javascript?
What are global variables? How are these variable declared and what are the problems associated with using them?
What are the application of javascript?
List html dom mouse events?
What is the function of delete operator?
Difference between Client side JavaScript and Server side JavaScript?
What is event in javascript?
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.
How do you target a specific frame from a hyperlink?
How are DOM utilized in JavaScript?
Is there any ide for javascript?
What is the use of 'bind' method in JavaScript?