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

Explain the working of timers in JavaScript? Also elucidate the drawbacks of using the timer, if any?

0 Answers  


What is the difference between undefined and not defined in JavaScript?

0 Answers  


How to validate email in javascript?

0 Answers  


What is difference between api and library?

0 Answers  


Describe javascript and vbscript.

0 Answers  






How can you detect the client operating system using javascript?

0 Answers  


What is the difference between the operators '==' and '==='?

0 Answers  


What are events in javascript?

0 Answers  


How is a relation not a function?

0 Answers  


How long does it take to get good at javascript?

0 Answers  


Is client side front end?

0 Answers  


In javascript chained select menus are available.first select menu is worked and others are disabled.when we select any one option then the next select menu will worked having option releated to selcted in first select menu.How it possible? what is the coading of this programme?

1 Answers  


Categories