472,110 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,110 software developers and data experts.

How to publish documents on web page

On my web site, I want to display information about my company. I want
this info to come from a doc file or any other format, so that whenever
I change the contents of this file, the web site is automatically
updated.

Is there a "cool" way of doing this in asp.net or any other technology?

Best Regards
helpneeded

Oct 30 '06 #1
6 1403
Well best way is to use XML for this case.
Helpneeded wrote:
On my web site, I want to display information about my company. I want
this info to come from a doc file or any other format, so that whenever
I change the contents of this file, the web site is automatically
updated.

Is there a "cool" way of doing this in asp.net or any other technology?

Best Regards
helpneeded
Oct 30 '06 #2
If it is a word document, you can save it in HTML format and it will be
immediately available online as a web page.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Helpneeded" <yo**********@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
On my web site, I want to display information about my company. I want
this info to come from a doc file or any other format, so that whenever
I change the contents of this file, the web site is automatically
updated.

Is there a "cool" way of doing this in asp.net or any other technology?

Best Regards
helpneeded

Oct 30 '06 #3
Hi,

Gladiator wrote:
Well best way is to use XML for this case.
Best way based on what?

XML is nice, but not the panacea. Other solutions come in mind:

- text file, obviously. Means more work for parsing it, but less work to
create it.

- Database: Depending on the number of visitors, might be the only
viable solution

- CSV document: Easily created by Excel, so perfect when the document's
creator is a layman.

I also prefer XML for many applications, but I think that the
alternatives are worth mentioning.

HTH,
Laurent
Helpneeded wrote:
>On my web site, I want to display information about my company. I want
this info to come from a doc file or any other format, so that whenever
I change the contents of this file, the web site is automatically
updated.

Is there a "cool" way of doing this in asp.net or any other technology?

Best Regards
helpneeded

--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Oct 30 '06 #4
Sorry, I am a bit confused. This document will have text, images and
stuff. What I dont want to do is hard code this stuff in my asp page. I
would have another guy create this document, tell him to put in a known
place, and have my web page automatically read from it.
In VB, I would do this by adding a rich text box, and link it to the
word doc. Obviously, this would look ugly on a web page.

Laurent Bugnion wrote:
Hi,

Gladiator wrote:
Well best way is to use XML for this case.

Best way based on what?

XML is nice, but not the panacea. Other solutions come in mind:

- text file, obviously. Means more work for parsing it, but less work to
create it.

- Database: Depending on the number of visitors, might be the only
viable solution

- CSV document: Easily created by Excel, so perfect when the document's
creator is a layman.

I also prefer XML for many applications, but I think that the
alternatives are worth mentioning.

HTH,
Laurent
Helpneeded wrote:
On my web site, I want to display information about my company. I want
this info to come from a doc file or any other format, so that whenever
I change the contents of this file, the web site is automatically
updated.

Is there a "cool" way of doing this in asp.net or any other technology?

Best Regards
helpneeded


--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Oct 31 '06 #5
Hi,

In my experience, displaying documents that you didn't format on a
webpage that you created gives bad results. For example, you could ask
the person who makes the word document to simply save it as HTML and
upload it to the web server. However, and that's my experience only, it
will look awkward.

A more professional solution is to use the document as a data source and
to format this data on the server, using ASP.NET for example.

The discussion we had was about the best way to format this data, eg
XML, text file, database or CSV.

Is that clearer?

HTH,
Laurent

Helpneeded wrote:
Sorry, I am a bit confused. This document will have text, images and
stuff. What I dont want to do is hard code this stuff in my asp page. I
would have another guy create this document, tell him to put in a known
place, and have my web page automatically read from it.
In VB, I would do this by adding a rich text box, and link it to the
word doc. Obviously, this would look ugly on a web page.

Laurent Bugnion wrote:
>Hi,

Gladiator wrote:
>>Well best way is to use XML for this case.
Best way based on what?

XML is nice, but not the panacea. Other solutions come in mind:

- text file, obviously. Means more work for parsing it, but less work to
create it.

- Database: Depending on the number of visitors, might be the only
viable solution

- CSV document: Easily created by Excel, so perfect when the document's
creator is a layman.

I also prefer XML for many applications, but I think that the
alternatives are worth mentioning.

HTH,
Laurent
>>Helpneeded wrote:
On my web site, I want to display information about my company. I want
this info to come from a doc file or any other format, so that whenever
I change the contents of this file, the web site is automatically
updated.

Is there a "cool" way of doing this in asp.net or any other technology?

Best Regards
helpneeded

--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Oct 31 '06 #6
Yup, making sense now. I already have a web page with navigation menus,
etc. If I upload the word doc as HTML, how do I keep the existing look
and display the web page at the same time.

Laurent Bugnion wrote:
Hi,

In my experience, displaying documents that you didn't format on a
webpage that you created gives bad results. For example, you could ask
the person who makes the word document to simply save it as HTML and
upload it to the web server. However, and that's my experience only, it
will look awkward.

A more professional solution is to use the document as a data source and
to format this data on the server, using ASP.NET for example.

The discussion we had was about the best way to format this data, eg
XML, text file, database or CSV.

Is that clearer?

HTH,
Laurent

Helpneeded wrote:
Sorry, I am a bit confused. This document will have text, images and
stuff. What I dont want to do is hard code this stuff in my asp page. I
would have another guy create this document, tell him to put in a known
place, and have my web page automatically read from it.
In VB, I would do this by adding a rich text box, and link it to the
word doc. Obviously, this would look ugly on a web page.

Laurent Bugnion wrote:
Hi,

Gladiator wrote:
Well best way is to use XML for this case.
Best way based on what?

XML is nice, but not the panacea. Other solutions come in mind:

- text file, obviously. Means more work for parsing it, but less work to
create it.

- Database: Depending on the number of visitors, might be the only
viable solution

- CSV document: Easily created by Excel, so perfect when the document's
creator is a layman.

I also prefer XML for many applications, but I think that the
alternatives are worth mentioning.

HTH,
Laurent

Helpneeded wrote:
On my web site, I want to display information about my company. I want
this info to come from a doc file or any other format, so that whenever
I change the contents of this file, the web site is automatically
updated.

Is there a "cool" way of doing this in asp.net or any other technology?

Best Regards
helpneeded

--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch


--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Nov 1 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Mike S. | last post: by
6 posts views Thread by ewolfman | last post: by
9 posts views Thread by Alex Greenberg | last post: by
4 posts views Thread by Mike L | last post: by
1 post views Thread by cadonahue | last post: by
10 posts views Thread by WT | last post: by
1 post views Thread by hdbbdh | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.