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 8759191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:44:22+00:00 2026-06-13T14:44:22+00:00

We have several html pages which we are storing as resources within our project.

  • 0

We have several html pages which we are storing as resources within our project. We have a webbrowser control which displays the content. Our idea was that a user can use the anchor href links in the html pages to navigate between the other internal html pages.

Is this possible? Most of the content will be static and rather than have it downloaded each time from a web server we would prefer just to include it within the application. We also would prefer to keep it within the application and not extracted to keep it as portable as possible.

I see this, could this be adapted to our scenario?

private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e) {
    // Redirect expertsexchange to stackoverflow
    if (e.Url.ToString().Contains("experts-exchange")) {
       e.Cancel = true;
       webBrowser1.Navigate("http://stackoverflow.com");
    }
}

If I assume this is possible for the moment then I would expect that either I would implement something like the above where it looks at the target URL or I would have to give each anchor element a name/uniqueID. I guess the first method would be easier to implement.

Thoughts?

  • 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-06-13T14:44:23+00:00Added an answer on June 13, 2026 at 2:44 pm

    Actually, my stupidity is the cause of my troubles. The code I show works beautifully but I had to set the navigating event of the webbrowser control to actually reflect soemthing. In short, I have two items, test.html and test2.html as included resources within the project and then I use…

    if (e.Url.ToString().Contains("test2"))
    {
    e.Cancel = true;
    webBrowser1.DocumentText = WindowsFormsApplication1.Properties.Resources.test2.ToString();
    }

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

Sidebar

Related Questions

I have a web form which is split up into several HTML pages. I
I have a serie of transparent pngs which are part of several html pages
We have a CMS which has several thousand text/html files in it. It turns
I have several functions which use jquery that are called across different pages. I'm
I have several web pages containing tables, for which I'd like to have line-borders
Hi just looking for some direction, I have a HTML form which has several
I have a page with several .desc divs. I want to add some html
I have several HTML elements (buttons) that fire the same JQuery AJAX request. When
I have several HTML code combinations like this: <h2></h2> <p></p> <iframe></iframe> <hr/> and from
I have a directory with several .html files. Would like to read the list

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.