How Do You Load a HTML File to a MVC View Page Help Dialogue?

How do you load an HTML file from a shared file directory to a MVC View Page help page?


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

käµfm³d 👽Commented:
What do you mean by "help page"? Is this something specific to ASP.NET MVC, or are you using the term generically to refer to a view?
danielolorenzAuthor Commented:
I am using a JQuery popup to display the Help Content.

    html: true,
    content: '<h4>Gun Permit Search Main Help</h4>',
    title: 'Help <button id="gun-permit-help-close" type="button" class="close help-close-btn" aria-hidden="true">&times;</button>',
    placement: 'bottom',
    trigger: 'click'

Open in new window

danielolorenzAuthor Commented:
I want to load a HTML into a HTML div tag within the popup?
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

danielolorenzAuthor Commented:
The HTML Help needs to be loaded into a div tag from a HTML file on my C: drive.
käµfm³d 👽Commented:
...on my C: drive.
C: drive on the client or server?
danielolorenzAuthor Commented:
On the client drive.
käµfm³d 👽Commented:
You cannot programmatically access a user's local drive without their own intervention. This comes in the form of a file dialog that you can show (programmatically) using an <input type="file" />. This is a security feature of browsers, and none allow you to override it. The only other recourse that I can think of would be to either write an Active X control or a Flash/Silverlight script that would give you more access to the user's local machine--not something that most people take lightly. HTML alone won't give you this.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.