Hi,
I have a requirement like i want to upload and download user types content in a message box using ASP.net 4.0 like the one in c-sharpcorner. Can any one suggest a best way to do that? Can we stored the content in database or as an html file and retrive it which will be the best way to do that.
The content user will be entering can be a text, image, or any type of file. Please suggest some best approach or some links which has example of that.
Loading
Sam HobbsPosted May 17, 2011, 7:14 PM
Abhimanyu K VatsaPosted May 17, 2011, 10:23 AM
think, how you insert record in db. just put some text in textbox and click on button...right?
this textbox will not let you edit your text like making bold, italic, formatting etc. so instead of using textbox use any html editor and a button. in the click event of that button you have to use file writing machenism and the file body data will be html editor data (formatted data)....
(i) html editor :
http://htmleditor.codeplex.com/
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/htmleditor/htmleditor.aspx
(ii) file writing machenism:
http://www.dotnetspider.com/resources/26301-How-create-ASPX-Page-Dynamically-A-Step.aspx
karthikPosted May 17, 2011, 9:15 AM
Abhimanyu K VatsaPosted May 17, 2011, 9:09 AM