Copy/Paste HTMl code

S

shapper

Hello,

I am creating an ASP.NET web site which inserts data in a SQL database
using LINQ.

One table column will hold HTML code. I am using a simple TextBox to
input the data.

I would like to create my text in my computer and then copy/paste the
HTML code to my TextBox and insert in the database.

What software should I use to create my text? Microsoft Office
2007, ... ? Any suggestion would be great.

Can I do it this way?

Thanks,

Miguel
 
M

Michael Nemtsev [MVP]

Hello shapper,

Not quite understand what the "my text" is?
Just encode your HTML text via HttpUtilite.Encode and store in DB

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


s> Hello,
s>
s> I am creating an ASP.NET web site which inserts data in a SQL
s> database using LINQ.
s>
s> One table column will hold HTML code. I am using a simple TextBox to
s> input the data.
s>
s> I would like to create my text in my computer and then copy/paste the
s> HTML code to my TextBox and insert in the database.
s>
s> What software should I use to create my text? Microsoft Office 2007,
s> ... ? Any suggestion would be great.
s>
s> Can I do it this way?
s>
s> Thanks,
s>
s> Miguel
s>
 
P

Peter Bromberg [C# MVP]

You may want to look at HTML controls like FreeTextBox or FCKEditor. These
are designed to handle editing of HTML and they behave just like a TextBox
form field when the data is posted.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: htp://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top