how can we use java script message alert with asp.net with
useing vb.net coding show full process with its coading



how can we use java script message alert with asp.net with useing vb.net coding show full process ..

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

Post New Answer

More JavaScript Interview Questions

List some features of javascript.

1 Answers  


What's the Difference Between Class and Prototypal Inheritance?

0 Answers  


What is the use of Void(0)?

0 Answers  


What are JavaScript types?

11 Answers   Infosys, Satyam,


Is javascript the future?

0 Answers  


Which built-in method sorts the elements of an array?

0 Answers  


Are javascript variables case sensitive?

0 Answers  


Can you explain the difference between call and apply?

0 Answers  


How to create a popup warning box?

0 Answers  


What is break and continue statements?

0 Answers  


why you used Java Script? Can it use for both client side and server side validation purpose?

12 Answers   BeBo Technologies, HCL, Wipro,


How can JavaScript be used?

0 Answers   Deloitte, JPMorgan Chase,


Categories