Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6146701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:59:21+00:00 2026-05-23T18:59:21+00:00

Uri currURI = new Uri(currentPageToLoad, UriKind.Relative); ExtrasHTMLbrowser.Navigate(currURI); The above code basically is grabbing a

  • 0

Uri currURI = new Uri(currentPageToLoad, UriKind.Relative);
ExtrasHTMLbrowser.Navigate(currURI);

The above code basically is grabbing a string (currentPageToLoad) and making a URI. Then my web browser, ExtrasHTMLbrowser, is trying to navigate to the URI. When currentPageToLoad is something like “author.html” it works perfectly, and navigates to the html page.

However, the problem I am having is that when the html file is in a folder such as HTML, it won’t navigate properly. So, when currentPageToLoad = “HTML/author.html” the phone will give me the generic 404 not found page.

Any Idea why it would matter if the file was in a folder, or am I trying to access the file incorrectly?

Any help is greatly appreciated, thanks!
-Mark

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:59:22+00:00Added an answer on May 23, 2026 at 6:59 pm

    Set the HTML file to build type Content.Then do this:

    var rs = Application.GetResourceStream(new Uri("HTML/author.html", UriKind.Relative));
    StreamReader sr = new StreamReader(rs.Stream);
    

    This will read the entire HTML file as a string. You can then use the WebBrowser control’s NavigateToString method like this:

    ExtrasHTMLbrowser.NavigateToString(sr.ReadToEnd());
    

    If you have images/CSS you want to use, then you’ll have to use the above method to read the HTML file as a string and save it into Isolated Storage, alongside the images and CSS files (with matching directories).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a relative URI: Uri U = new Uri(../Services/Authenticated/VariationsService.svc, UriKind.Relative); The problem is
I grab the URI string with php code. The URI could be: solution 1
String uri = http://maps.google.com/maps?saddr= + src_lat+,+src_lon+&daddr=+des_lat1+,+des_lon1; Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri)); intent.setClassName(com.google.android.apps.maps, com.google.android.maps.MapsActivity);
var uri = URL_BASE + myuri string.Format(providers/{0}/items?feed={1}&id={2}&type=cf, provider, feed, zipFileNoPath); var webClient = new
I have a System.Uri, e.g., var uri = new Uri(http://www.domain.com/foo/bar); How do I get
I have: String uri = @drawable/myresource.png; How can I load that in ImageView? this.setImageDrawable?
Uri uri = Uri.parse(com.dynamixsoftware.printershare.print); Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setData(uri); intent.setPackage(com.dynamixsoftware.printershare.print); intent.setType(application/pdf); startActivity(intent);
I'm trying to open an URI with Swing that I get above error. What
uri.getPathSegments().get(1); Basically the get(1) part
When using contentResolver.delete(uri, null, null) then determining success can be done by looking at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.