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
What is camelcase in programming?
Is javascript hard to learn?
Is array an object javascript?
How to set the cursor to wait?
Explain how to write class methods vs. Instance methods.
What percentage of websites use javascript?
What is enum size?
What is difference between var x =1; and x=1;?
Is javascript a dynamic language?
What are the javascript objects?
What is javascript in simple terms?
What are the variables in javascript?
How do I add a javascript event handler to an html page element?
What is a noscript tag?
What is null javascript?