NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Browse a Listing

Subscribe to this category

Top > ASP.NET > Scripts and Controls > HTML Manipulation

Popular Tags

Free Script links
Sort By :
Sometimes you will need to send static files over http using ASP.Net - for example if you want to control access to the file programmatically. Such tasks can be simply handled by Response.WriteFile(FileName) for plain html files, but there are two problems:
Response.ContentType is "text/html" by default. So if you want to write .gif images by ASPX, you have to set right Content-Type http header according to the file type (image/gif).
There is a good idea to handle at least Last-Modified and If-Modified-Since headers to reduce traffic and increase performance. Otherways, the file is sent each time.
I created a simple VB.Net support functions for this tasks.
1. GetContentType - returns content-type of a file from registry
2. DateFromHTTP - converts string date from http header (Fri, 09 Sep 2005 07:51:28 GMT format) to Date format
3. DateToHTTPDate - converts date to string format.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 2 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

HTML to XML conversion component. Converts any HTML document to well-formed XML to allow for the programmatic extraction of information (i.e. HTML scraping).

File-to-file HTML to XML conversion.
Memory-to-memory HTML to XML conversion.
Ability to convert character encoding during conversion process.
Flexibility in controlling how HTML entities are handled.
Automatically convert HTML entities to corresponding 8-bit characters.
Ability to drop all text formatting tags from the output.
Ability to drop/undrop specific tags from the output.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 7 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

Category Jump :