Click here to Skip to main content
12,699,123 members (25,543 online)
Rate this:
 
Please Sign up or sign in to vote.
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
Updated 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 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.170118.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2017
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