Articles → LIGHT SWITCH 2011 → Open a link in new browser window in Lightswitch 2011

Open a link in new browser window in Lightswitch 2011
























Software requirement











Prerequisite knowledge

















Assembly required





Namespace required









What is HTMLPage class?





Implementation


Dispatchers.Main.BeginInvoke(() = >{
	var uri = new Uri("http://google.com", UriKind.RelativeOrAbsolute);
	HtmlPage.Window.Navigate(uri, "_blank");
});









Running the code without dispatcher





Output


Picture showing the output of opening a link in new browser window in Lightswitch

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Monday, May 21, 2012

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250