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 |
What is a callback url?
what is pop()method in JavaScript?
How are tag positions used in javascript?
How do you extend classes Code snippet: const circle = { radius: 20, diameter() { return this.radius * 2; }, perimeter: () => 2 * Math.PI * this.radius };
Explain the terms synchronous and asynchronous code?
Should you disable javascript?
How onclick works in javascript?
why we use javascript in html ?
What are the four basic data structures in javascript?
Can you assign an anonymous function to a variable and pass it as an argument to another function?
What is viewstate in javascript?
What is argument objects in javascript & how to get the type of arguments passed to a function?