473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

word content inside asp.net master / content pages

I've got an asp.net 2.0 website that has a master page and content
pages. For announcemnts, users modifiy plain old html pages that I then
can bring into a div tag of a content page using the following vb.net
code:

Dim htmlin As String = System.IO.File.ReadAllText(Server.MapPath(".\")
+ e.CommandArgument)Announcements.InnerHtml = htmlin

My question, what's the best way to allow users to edit and save a
native word document file so that the web site can render it under it's
master page design?

If I save the word doc as a web page it creates a subfolder with all
the images. And If I use the above technique to pull in the *.htm
created, for some reason some images are not resolved and those that
are don't seem to align right.

If I save the file as a web archive, the above does not know what to do
with that file type.

The goal being I want to the word doc (in whatever format) inside a
content page.

Dec 11 '06 #1
1 1243
If I were to make a brief one-time comment about your question I would
encourage you to review Microsoft's Open XML.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=-...8&z=17&l=0&m=h

"jobs" <jo**@webdos.comwrote in message
news:11*********************@79g2000cws.googlegrou ps.com...
I've got an asp.net 2.0 website that has a master page and content
pages. For announcemnts, users modifiy plain old html pages that I then
can bring into a div tag of a content page using the following vb.net
code:

Dim htmlin As String = System.IO.File.ReadAllText(Server.MapPath(".\")
+ e.CommandArgument)Announcements.InnerHtml = htmlin

My question, what's the best way to allow users to edit and save a
native word document file so that the web site can render it under it's
master page design?

If I save the word doc as a web page it creates a subfolder with all
the images. And If I use the above technique to pull in the *.htm
created, for some reason some images are not resolved and those that
are don't seem to align right.

If I save the file as a web archive, the above does not know what to do
with that file type.

The goal being I want to the word doc (in whatever format) inside a
content page.

Dec 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: madani | last post by:
Hi, I'm trying to have one master page for my webapplication layout, this master page hage 3 contentPlaceHolder s, and I have 3 aspx files, with one Content control inside each of them, how can...
5
by: andchoi | last post by:
I must be the dumbest ASP.NET 2.0 developer, because despite many different attempts, I am unable to resize a content place holder in the master page... Can anyone clue me in? It seems that the...
2
by: Learner | last post by:
Hello, This is first time I have started using Master Pages. I am using ASP.NET 2.0 (VB) in Visual Studion 2005. This is how I am doing it... I have created a master page and placed a...
2
by: SR | last post by:
I have started a web site using ASP.NET 2.0. I would like to centralize all of my classes in a StyleSheet but I cannot figure out how to link the StyleSheet to a Content Page since there is no...
7
by: pushpadant | last post by:
Hi, I have one master page which has some table inside one of the <td> i have my contentplaceholder. on the <head> tag of the master page i have specified link to a global CSS...
7
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will...
3
by: pagates | last post by:
Hello All, This is a newbie follow-up to my previous newbie question.... Is there a way to view a Word document (or a PDF, or a text file, or any other file) as content for a Master Page? ...
3
by: vikramp | last post by:
Hi, I am still new to ASP.NET 2.0 and trying to develope something using Master pages. My problem is: I have a master page that contains Logo image and a navigation menu at the top of the...
7
by: TheLongshot | last post by:
I just recently converted a few pages of my application to using master pages. Problem is, in all of my content pages, the contents are centered. I can't figure out why. The markup in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.