Avatar of pointeman
pointeman
Flag for United States of America asked on

HTML Image and Textarea Templates?

I have an HTML Editor for web page content changes and one .htm template file used for structure (tables, etc...). I would like to always have the template unchanged, yet allow the user to type-in thier text, images, etc... The finished user info and the .htm structure will be saved in a datbase. I'm currently loading the template in the HTML Editor and allowing the user to change it.

Q. Is there a way to allow a user to include thier data using the .htm template, yet not change the .template?

I'm thinking along the idea of how email .htm templates are used.
ASP.NET

Avatar of undefined
Last Comment
pointeman

8/22/2022 - Mon
CB_Thirumalai

How far a div's .innerHTML property help?  You can always get the entire user content and save it.  And when you want to display it again, pass the content to the innerHTML property of the DIV and you have the original content that user fed.  Is this what you mean by templates or something different?
pointeman

ASKER
Yes, the user content will be stored in a database, then retrieved and added to the template for web page viewing.
ASKER CERTIFIED SOLUTION
CB_Thirumalai

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
pointeman

ASKER
Do you know of a tutorial ?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
CB_Thirumalai

What kind of tutorial, code samples?

1. In the ASPX page have the DIV and put the runat="server" in that
2. In the code file, get the Div and use the innerHTML property to assign it to a string variable.
3. When you retrieve, apply the string to the DIV.
pointeman

ASKER
I'll need to research the .innerHTML property and its uses concerning text templates. Thanks for the great tip.....