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
Explain the role of deferred scripts in javascript?
What is "this"?
How to show progress bar while loading using ajax call?
How to reload a page using JavaScript?
Which built-in method calls a function for each element in the array?
What are the ways of making comments in javascript?
What are javascript functions?
What are javascript objects?
Expand BOM and explain it?
What does the term sticky session mean in a web-farm scenario?
Where is javascript used most?
How to add/remove properties to object dynamically in javascript?
What does 3 dots mean in javascript?
What is the use of a set object in javascript?
How to find operating system in the client machine using javascript?