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 |
How do I unblock javascript in chrome?
How to find radio button selection when a form is submitted?
What is the use of a date object in javascript?
Why extending array is bad idea?
What is screen object in JavaScript?
How to reload the current page?
How do you add an element at the end of an array?
What is a name function in javascript & how to define it?
How to get the primitive value of a string in Javascript?
How do you change the style/class on any element using javascript?
What is use of flutter?
what difference between args.length and args.length() in command line argument?