I have captured a key-combination-press event on my Silverlight Page. Now in the event handler i want to display a prompt box which takes user input and stores into a string variable. I put in this code :
string input = System.Windows.Browser.HtmlPage.Window.Invoke("prompt", new string[] { "QUICK SEARCH", "ENTER YOUR SEARCH ITEM.." }) as string;
But when i run it, It shows me a run time error of AccessViolation error was unhandled saying:"Attempted to read or write protected memory. This is often an indication that other memory is corrupt." any Solutions ??