Click here to Skip to main content
15,913,758 members
Home / Discussions / C#
   

C#

 
GeneralRe: ILDASM QUESTION: IL_0000 & code size Pin
leppie31-Jan-05 20:33
leppie31-Jan-05 20:33 
GeneralDataset delet row Pin
webhay31-Jan-05 9:53
webhay31-Jan-05 9:53 
GeneralRe: Dataset delet row Pin
Guinness4Strength31-Jan-05 12:20
Guinness4Strength31-Jan-05 12:20 
QuestionHow to create a multithreaded UDP server. Pin
just_starting31-Jan-05 8:18
just_starting31-Jan-05 8:18 
Generalwindows application html page problem. Pin
drey131-Jan-05 7:05
drey131-Jan-05 7:05 
GeneralRe: windows application html page problem. Pin
Esmo200031-Jan-05 7:39
Esmo200031-Jan-05 7:39 
GeneralRe: windows application html page problem. Pin
drey131-Jan-05 8:41
drey131-Jan-05 8:41 
GeneralRe: windows application html page problem. Pin
Heath Stewart31-Jan-05 9:26
protectorHeath Stewart31-Jan-05 9:26 
You need to use relative paths in your HTML file that you're writing. I suggest using the Microsoft way of doing it, which is what happens when you save a page from Internet Explorer using the default settings: the HTML page is saved to disk and a folder is created with the same name and "_files" appended. In that directory are all the files that can be resolved (images, script files, etc.). When the HTML file is saved the path to those linked files are changed to a relative path - relative to the document, like so:

filename_files/img1.gif
filename_files/img2.jpg

Try it. Save a document with images to disk and examine both the file and the folder with the same name.

Using the same convention is consistent with other applications that use MSHTML (including IE, Word, FrontPage, and more), as well as other third-party libraries that want to provide a consistent user interface. Windows XP and newer platforms also allow users to manage both the HTML file and related folder as a single unit.

How you alter it is by parsing the text as you write it and changing what gets written, then skipping that portion of the text you're writing. You could also modify it before saving. It really just depends on your requirements and if you can modify the in-memory document.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralI need some advice (dll to exe) Pin
lms00731-Jan-05 7:01
lms00731-Jan-05 7:01 
GeneralRe: I need some advice (dll to exe) Pin
leppie31-Jan-05 7:35
leppie31-Jan-05 7:35 
GeneralRe: I need some advice (dll to exe) Pin
lms00731-Jan-05 11:43
lms00731-Jan-05 11:43 
GeneralRe: I need some advice (dll to exe) Pin
Esmo200031-Jan-05 7:38
Esmo200031-Jan-05 7:38 
GeneralRe: I need some advice (dll to exe) Pin
mav.northwind31-Jan-05 8:17
mav.northwind31-Jan-05 8:17 
GeneralRe: I need some advice (dll to exe) Pin
Heath Stewart31-Jan-05 9:21
protectorHeath Stewart31-Jan-05 9:21 
GeneralError deleting collection of tickets Pin
tadhg8831-Jan-05 5:53
tadhg8831-Jan-05 5:53 
GeneralRe: Error deleting collection of tickets Pin
leppie31-Jan-05 7:38
leppie31-Jan-05 7:38 
GeneralMultiple Monitor Software Pin
lizim31-Jan-05 5:05
lizim31-Jan-05 5:05 
GeneralRe: Multiple Monitor Software Pin
Esmo200031-Jan-05 6:02
Esmo200031-Jan-05 6:02 
GeneralRe: Multiple Monitor Software Pin
lizim31-Jan-05 20:48
lizim31-Jan-05 20:48 
GeneralRe: Multiple Monitor Software Pin
mav.northwind31-Jan-05 8:27
mav.northwind31-Jan-05 8:27 
Generaladding rows dynamically to a datagrid Pin
steve_rm31-Jan-05 4:19
steve_rm31-Jan-05 4:19 
GeneralRe: adding rows dynamically to a datagrid Pin
Anonymous31-Jan-05 5:22
Anonymous31-Jan-05 5:22 
QuestionRemove multiple blanks in a string? Pin
Syntaxo31-Jan-05 1:00
Syntaxo31-Jan-05 1:00 
AnswerRe: Remove multiple blanks in a string? Pin
lainoo31-Jan-05 1:58
lainoo31-Jan-05 1:58 
GeneralRe: Remove multiple blanks in a string? Pin
Syntaxo31-Jan-05 2:36
Syntaxo31-Jan-05 2:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.