Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > word content inside asp.net master / content pages

Reply
Thread Tools

word content inside asp.net master / content pages

 
 
jobs
Guest
Posts: n/a
 
      12-11-2006
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.

 
Reply With Quote
 
 
 
 
clintonG
Guest
Posts: n/a
 
      12-13-2006
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
master pages and content pages sjsean ASP .Net 1 08-01-2009 08:40 PM
Master Pages and content pages in subfolder vikramp ASP .Net 3 10-13-2006 07:07 PM
limit on number of content placeholders(which are editable in content pages) in master page nemesis.saurabh@gmail.com ASP .Net 0 05-25-2006 04:44 AM
Cross Page Post Back When Using Mixture of Master Pages and Non-Master Pages Jason@webbit.com ASP .Net 1 05-16-2006 02:00 PM
seeking servlet "Master" keep getting "Master/servlet/Master" not found. Tomcat 5.0.25 Doug McCann Java 1 08-05-2004 09:16 PM



Advertisments