Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Windows-Phone-7
string nav = "http://www.google.com";           
webBrowser1.NavigateToString("<meta http-equiv='refresh'content='320;URL='"+nav+"'' />");
can i get url in as string to use in meta tag??? i am using wp7
Posted 22-Jan-13 23:59pm
Edited 23-Jan-13 6:36am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

you can use something like this,
 
string nav = "http://www.google.com"; 
string metaString="<meta http-equiv='refresh'content='320;URL='"+nav+"'' />";
XElement urlElement = XElement.Parse(metaString);
webBrowser1.NavigateToString(urlElement.Element("URL").Value);
  Permalink  
Comments
Anandavel.p at 30-Jan-13 9:06am
   
XmlException was unhandled
'content' is an unexpected token. Expecting white space. Line 1, position 27.
 
this error throwing while i am executing ..........

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.150302.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100