I have developed an application in VB.NET console application.
when i open a particular file suppose txt(Notepad) file then it shows it as it is when i see the
output on console but when i render it to the HTML
then the output is unformatted i.e. it does not understand the format and gives the output like
some special character for example
1> ÿ ÿ (these are the special characters) Regards,
2> for hyperlink it shows the output as HYPERLINK "http://...........com
i want to display the output in a formatted way on the HTML page.
Can anybody have any idea abt this?
bhavna_816
0
Junior Poster
Recommended Answers
Jump to PostHtml has several tag pairs tags for this purpose:
code, kbd, pre, samp, tt, var
code is an inline pair of tags used to show computer code
kbd i an inline pairs used to represent keyboard input.
<kbd>C:> diskcopy a: b:</kbd>
pre is for …
Jump to PostFor the 'special characters' you might want to try escaping them into HTML entities; or using a different page encoding.
If you don't have too many 'special characters' you can escape them as according to the following table:
Jump to PostI think I misunderstood your original question.
If you're output when viewing a page in the browser is plain text (i.e. not formatted at-all as HTML), then there's a couple of potential reasons:
- the page isn't saved with an extension that maps to the HTML mime type …
All 10 Replies
MidiMagic
579
Nearly a Senior Poster
bhavna_816
0
Junior Poster
MattEvans
473
Veteran Poster
Team Colleague
Featured Poster
bhavna_816
0
Junior Poster
MattEvans
473
Veteran Poster
Team Colleague
Featured Poster
bhavna_816
0
Junior Poster
MattEvans
473
Veteran Poster
Team Colleague
Featured Poster
bhavna_816
0
Junior Poster
bhavna_816
0
Junior Poster
MattEvans
473
Veteran Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.