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

hi iM rahul.my questions is my project is a web based & developed using java,jsp. when i record it using qtp what script i will get like either browser("jdfjkf").page("nkf").... or javawindow("f d ").javaedit("Dasf").... plz clarify my doubt asap and i also need some vbscipt of java coding?

0 Answers  


What happens when the recursion calling is applied on two functions?

0 Answers  


Is everything in javascript asynchronous?

0 Answers  


Can we learn javascript without knowing java?

0 Answers  


Where do you put javascript in html?

0 Answers  






What is differential inheritance?

0 Answers  


how to disable source option at view menu in browser like internet explorer...mozilla...etc..pls help me...

2 Answers   IIS,


How can the os of the client machine be detected?

0 Answers  


What is the use of math object in javascript?

0 Answers  


accessdenied javanet disconnet

0 Answers   Reliance,


How do you change the style/class on any element using javascript?

0 Answers  


How to check if a variable is an integer in javascript ?

0 Answers  


Categories