VS.NET 2010 (and above) Users Click Here   

HOMECONTACT PRODUCTS DOWNLOADS PURCHASE TESTIMONIALS FORUMS COMPANY CONTACT
Home
Products
Downloads
Purchase
Licensing
Licensing FAQ
Software Updates
Support Forums
Testimonials
Feature Requests
Guarantee
About Us
Contact Us
Hosting Companies
Privacy Policy
   
Shopping Cart


aspNetMHT forum



[ Reply to Post ] [ Back To Forum ]
From: "Arnaud Bessems" <arnaudbessems@...>
Date: 7/3/2013 7:50:36 AM
Subject: Style on a ASP control
Hi all,

I have a issue when a asp control use the "Width" property. On the website, the width appeard in a "style" tag and work great but in the MHT generated the flag isn't exist and the render is corrupted.

HTML page:
<input name="txtVilleIncoterm" tabIndex="15" class="zonetxtdefaut" id="txtVilleIncoterm" style="width: 300px;" type="text" maxLength="200"/>

MHT page:
<input name="txtVilleIncoterm" tabIndex="15" class="zonetxtgris2" id="txtVilleIncoterm" type="text" maxLength="200" readOnly="" value="Recquignies"/>

In the code-behind the file is generated like this:
Dim aMht As New aspNetMHT.MHT()
        aMht.Logger = New aspNetMHT.MHTLog(thePath & ".log")
        aMht.Logger.Enabled = True
        aMht.Logger.Overwrite = True

        aMht.Cookies = theCookieContainer
        aMht.FollowHttpRedirects = True
        aMht.FollowMetaTagRedirects = True
        aMht.ContentRelation = aspNetMHT.MHTRelation.ContentId
        aMht.StreamEncoding = System.Text.Encoding.GetEncoding("iso-8859-1")
        aMht.CharSet = "iso-8859-1"
        aMht.Timeout = 36000000
        aMht.Ignore404 = True
        aMht.LoadUrl(theUrl)
        aMht.Parse()

        If Not IO.Directory.Exists(IO.Path.GetDirectoryName(thePath)) Then
            IO.Directory.CreateDirectory(IO.Path.GetDirectoryName(thePath))
        End If
        aMht.SaveToFile(thePath)
        aMht = Nothing


Thanks for your help

 

 

 



Thread View

Subject By Date
Style on a ASP control [ you are here ] Arnaud Bessems 7/3/2013
   RE: Style on a ASP control dave wanta 7/3/2013
     RE: Style on a ASP control Arnaud Bessems 7/3/2013
       RE: Style on a ASP control dave wanta 7/3/2013
   RE: Style on a ASP control dave wanta 7/8/2013

 

 

Testimonial

Your components have saved me tons of development time, are full-featured and are very reliable. Your support is absolutely outstanding. thank you! "

Martin Olson | Industry Pro

Read more testimonials
ListNanny aspNetDNS aspNetEmail aspNetPOP3 aspNetMX IPMuncher aspNetMIME aspNetPING aspNetTraceRoute aspNetIMAP aspNetMHT