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

Raja
Posted by Raja under Silverlight category on | Views : 31223
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