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

code to sorting an array of objects

2484


Create a Menu that can be activated while clicking on Right Mouse button

2126


determine which Element received an Event

2334


how to create a Draggable element

2432


code to get the coordinates of a Click Event

2232


snippet to prevent submission of form when certain/any validations got failed

1930


how to pass data between pages using Frames

2727


how to create a Custom Scrollbar

2549


communication between main window and new windows

2177


program to show a progress bar

2624


How to encode and decode URL strings?

2305


code to set the main window's size

2294


code to positioning of window in certain dimensions

2128


how to transform XML Data into HTML

2382


how to convert between arrays and strings

2789