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
How do I save javascript?
Are Typescript and Javascript the same?
What is difference between arrow function and normal function?
What is the use of history object?
Can you access Cookie using javascript?
What's the difference methods get and post in html forms?
Can javascript code be broken in different lines?
Does javascript support automatic type conversion, if yes give example.
What is Date object in JavaScript?
What companies use javascript?
How to force a page to go to another page using javascript ?
What does "1"+2+3 evaluate to?
Are java and javascript the same?
What is the real name of JavaScript?
how to hide alphabets in java as password '*'