Accessing a HTML document in a resouce dll

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I am currently working on a C# application that uses an axWebBrowser
control which displays HTML pages. This is being done to reuse an
existing web application which resides on a client's computer. I
have created a resource .dll linking in all of the HTML, images and
JavaScript pages in the old project. Using the
res://mydll/homepage.htm, the home page loads into the web browser
control (axWebBrowser.Navigate). This page has frameset, so when I try
to access the document frames, I get an exception Access Denied.

I am using code similar to this to access the frames:

HTMLDocument myDoc = new HTMLDocumentClass();
myDoc = (HTMLDocument) axWebBrowser1.Document;
FramesCollection c = myDoc.frames;

Object o = i;
i++;
Object c1 =null;

try
{
c1 = c.item(ref o);
}
catch(Exception ex)
{
Console.WriteLine(ex.Message)
}

Is this a way that I can dynamically change the frames depending on a
users action. I have no problem displaying the frames or using the
JavaScript when they are not in a resource dll. If there a different
technique, using the Document and JavaScript when they are contained in
a resource dll.

Thank you in advance for all of your time.

.



Relevant Pages

  • Re: The Problems of TeX
    ... errors and makes very heavy use of javascript that I can only guess, ... So you're comparing what's there as HTML with what's there as PDF. ... most part demonstrate the point of offering the user control over the ... graphic sizes, ...
    (comp.text.tex)
  • Re: Help!!! Using Frames ASP.NET...
    ... Is there a direct way to use frames? ... > to html, javascript etc.. ... do you mean by "not jumping from ASP.Net to html, javascript etc."? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Custom Control - Specific placement of HTML Textwriter output - Ho
    ... HTML from a StringBuilder in my control to add the needed JavaScript to the ... HTML output. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Newbie Question on the Basics
    ... What is it in the HTML that calls the Javascript after every keypress? ... "onload" function then uses the DOM to locate nodes in the document ... when the script, not the HTML, is in control of its own ...
    (comp.lang.javascript)
  • Re: Japanese - wrong encoding in a frame
    ... I haven't examined the original problem in detail (neither frames nor ... lies with the javascript rather than with the HTML. ... get each one working in isolation, ...
    (comp.infosystems.www.authoring.html)