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

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


Please Help Members By Posting Answers For Below Questions

Explain the role of deferred scripts in javascript?

956


What is "this"?

934


How to show progress bar while loading using ajax call?

1033


How to reload a page using JavaScript?

1204


Which built-in method calls a function for each element in the array?

1054


What are the ways of making comments in javascript?

875


What are javascript functions?

925


What are javascript objects?

973


Expand BOM and explain it?

936


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

977


Where is javascript used most?

940


How to add/remove properties to object dynamically in javascript?

948


What does 3 dots mean in javascript?

909


What is the use of a set object in javascript?

946


How to find operating system in the client machine using javascript?

969