Results 1 to 2 of 2

Thread: Web Browser Control DocumentText Attributes

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Manchester
    Posts
    266

    Question Web Browser Control DocumentText Attributes

    An annoying problem.

    I am looping through a HTML email flyer, iterating the images in the HTML document, uploading these images to a server and then using the setattribute() method to rewrite the images to point to the server copy rather than the local copy.

    All of this works fine! However, i'm then trying to write the new underlying HTML code to the same file (overwrite) and the documenttext property of the webbrowser control doesn't seem to contain my update attributes. This is strange as when right clicking each image on the web browser control itself, I can see that the new image location has been set correctly.

    Do I need to somehow 'refresh' the documenttext property or something? How can I acccess the new HTML code of a web browser control after the point at which I have change some attributes of certain HTML tags?

    Cheers!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Web Browser Control DocumentText Attributes

    It might help if we knew what you were actually doing, i.e. your code.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width