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 to Add Message and Confirmation Boxes Using JavaScript?

Answer Posted / guest

public void AddConfirmMessage(WebControl ctl, string
message)
{
ctl.Attributes.Add("onclick", "if ( ! confirm( '"
+ message + "' )) return false; ");
}

public void AddPopupMessage(WebControl ctl, string message)
{
ctl.Attributes.Add("onclick", "alert( '" + message
+ "'); ");
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to create a Draggable element

2488


write a code to generate pseudorandom numbes

2418


program to show a progress bar

2675


how to create an anonymous function

2222


code to Hide and Show form controls

2377


how to convert between arrays and strings

2873


code to positioning of window in certain dimensions

2170


code to get the coordinates of a Click Event

2268


code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc

2223


how to copy form data between different pages

2379


Code to Block submission of form by pressing Enter Key

2552


How to block double clicks

2174


maximizing the main window

2118


communication between main window and new windows

2222


determine which Element received an Event

2379