Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What is the function of javascript?

0 Answers  


What are the types of variables in javascript?

0 Answers  


What does the term sticky session mean in a web-farm scenario?

0 Answers  


How to delete an array entry using javascript?

0 Answers  


what data type javascript supports?

0 Answers  


What is 'use strict'?

0 Answers  


Explain the different types of pop-up boxes you can create in JavaScript.

0 Answers  


Which is better typescript or javascript?

0 Answers  


Is javascript enabled on my computer?

0 Answers  


When would you use var in your declaration and when you wouldn’t?

0 Answers  


How are DOM utilized in JavaScript?

0 Answers  


What are the Non-primitive data types in JavaScript?

0 Answers  


Categories