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

Does spacing matter in javascript?

1010


List out the different ways an HTML element can be accessed in a Javascript code?

1253


What is strict mode?

1259


what is the difference between window & document in javascript?

1000


what will happen and why if i will acess the methods of superclass which is declared as private by a object of same subclass.

2095


How can you declare a class in javascript?

1237


Explain a story about javascript performance problems?

983


Do I need javascript enabled?

1022


How do you write a comment in javascript?

908


How long does it take to learn javascript?

985


What is difference == and === in javascript?

1027


What is console.log()?

996


What is === in javascript?

1050


Explain the terms synchronous and asynchronous code?

1068


Is javascript hard to learn?

946