Maintain HTML from Sql server field in ASP.net form

I have a sql server table named ShopInfo that has a bunch of fields containing shop information

the shophours field contains the shop hour in an html table

the following is an example

<table width="100%" cellpadding="2" cellspacing="0" style="border:solid 0px #dcdcdc;"><tr><td colspan="2" style="background-color:#f5f5f5;border:solid 1px #dcdcdc;"><img src="./images/icon-clock.gif" style="vertical-align:bottom;" alt="" border="0" /> <b>Store Hours:</b></td></tr><tr><td style="border:solid 1px #dcdcdc; width:40%;">Monday-Friday:</td><td style="border:solid 1px #dcdcdc;">8:00am - 6:00pm</td></tr><tr><td style="border:solid 1px #dcdcdc;">Saturday:</td><td style="border:solid 1px #dcdcdc;">8:00am - 5:00pm</td></tr><tr><td style="border:solid 1px #dcdcdc;">Sunday:</td><td style="border:solid 1px #dcdcdc;">10:00am - 4:00pm</td></tr></table>

The html format for each of the shop hour entries is the same except for the hours themselves

I have attached a screen shot of what the generated html looks like

Currently, the user sends a request to IT if the hours need to change and we manually go into thetable and make the changes

The user would like a form to be able to change the hours themselves.

Trying to determine a way to present the info in a user friendly format to allow users to change hours and then write the updated html back to the table

Any suggestions as to a good way to approach this?

johnnyg123Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

johnnyg123Author Commented:
0
Dale BurrellDirectorCommented:
Use TinyMCE and allow them to edit the HTML (rather than structuring it as a form).
0
MlandaTCommented:
You can also have a look at FreeTextbox
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

MlandaTCommented:
For a sample how you can use FreeTextBox: http://www.a2zdotnet.com/View.aspx?Id=28
0
Dale BurrellDirectorCommented:
Seriously don't touch FreeTextBox with a barge pole... I used it initially and soon got very frustrated.

Even DotNetNuke changed to using FckmEditor, but having used them all I think TinyMCE is the way to go.
0
jagssiduralaCommented:
This is a quick fix. Give a screen to enter hours with a text box.

Then write update statement based on you client as below.

Declare @shopinfo Nvarchar(2048)
Set @shopinfo = '<table width="100%" cellpadding="2" cellspacing="0" style="border:solid 0px #dcdcdc;"><tr><td colspan="2" style="background-color:#f5f5f5;border:solid 1px #dcdcdc;"><img src="./images/icon-clock.gif" style="vertical-align:bottom;" alt="" border="0" />
<b>Store Hours:[#Hours]</b></td></tr><tr><td style="border:solid 1px #dcdcdc; width:40%;">Monday-Friday:</td><td style="border:solid 1px #dcdcdc;">8:00am - 6:00pm</td></tr><tr><td style="border:solid 1px #dcdcdc;">Saturday:</td><td style="border:solid 1px #dcdcdc;">8:00am - 5:00pm</td></tr><tr><td style="border:solid 1px #dcdcdc;">Sunday:</td><td style="border:solid 1px #dcdcdc;">10:00am - 4:00pm</td></tr></table>'

Update tblX
set shopinfo = Replace(@shopinfo, '[#Hours]', 'textboxvalue from screen'
Where clientid = @clientid
0
johnnyg123Author Commented:
Thanks for all the feed back!

I wnet with the quick fix for now but I am going to play around with TinyMCe as time permits
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.