how can we use java script message alert with asp.net with
useing vb.net coding show full process with its coading
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 |
Where can I learn javascript for free?
How to write hello world on the web page?
How to count the number of element in an array using javascript?
How to determine the state of a checkbox using javascript?
When would you use javascript closures?
Is there any difference between javascript and jscript?
What is the instanceof operator in JavaScript?
What does triple dot mean?
what is the extension of java script.
What is the difference between call & apply?
What would you use javascript for?
How do you add an element at the end of an array?