Visitor's Feedback
-
I have an ASP.NET/C# application that saves visitors feedback through a textBox. How do I make sure that the feedback is displayed in the format it was typed. E.g. Dear Admin, I loved the look and feel of your site... It's a great job!!! Aweda Akeem How do I save and display in the same format (including the witespaces, linefeeds, etc? Thanks you all!
-
I have an ASP.NET/C# application that saves visitors feedback through a textBox. How do I make sure that the feedback is displayed in the format it was typed. E.g. Dear Admin, I loved the look and feel of your site... It's a great job!!! Aweda Akeem How do I save and display in the same format (including the witespaces, linefeeds, etc? Thanks you all!
An easy way would be to use the AjaxControlToolkit HtmlEditor[^]. Save the resultant data to the database and view back in the editor or a label as required. You'll need to encode the data (see here to get started: HttpServerUtility..::.HtmlEncode[^]. You can display the data by reversing the process.
Tychotics: take us back to the moon "Life, for ever dying to be born afresh, for ever young and eager, will presently stand upon this earth as upon a footstool, and stretch out its realm amidst the stars." H. G. Wells
-
An easy way would be to use the AjaxControlToolkit HtmlEditor[^]. Save the resultant data to the database and view back in the editor or a label as required. You'll need to encode the data (see here to get started: HttpServerUtility..::.HtmlEncode[^]. You can display the data by reversing the process.
Tychotics: take us back to the moon "Life, for ever dying to be born afresh, for ever young and eager, will presently stand upon this earth as upon a footstool, and stretch out its realm amidst the stars." H. G. Wells