How to display alert, prompt and confirm box in Silverlight?

Posted by Raja under Silverlight category on | Views : 32221
To display Alert Box, use
System.Windows.Browser.HtmlPage.Window.Alert("Alert Message");

To display Input box (prompt), use
string strValue = System.Windows.Browser.HtmlPage.Window.Prompt("What is your age?");

To display confirm box, use
bool blnResult = System.Windows.Browser.HtmlPage.Window.Confirm("Are you sure?");

Comments or Responses

Login to post response