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

How do I save javascript?

946


Are Typescript and Javascript the same?

990


What is difference between arrow function and normal function?

884


What is the use of history object?

1628


Can you access Cookie using javascript?

989


What's the difference methods get and post in html forms?

957


Can javascript code be broken in different lines?

1037


Does javascript support automatic type conversion, if yes give example.

1050


What is Date object in JavaScript?

1091


What companies use javascript?

862


How to force a page to go to another page using javascript ?

885


What does "1"+2+3 evaluate to?

934


Are java and javascript the same?

970


What is the real name of JavaScript?

1074


how to hide alphabets in java as password '*'

2115