|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
Note: This is an unedited contribution. If this article is inappropriate,
needs attention or copies someone else's work without reference then please
Report This Article
IntroductionI was working on a project , where i have to retrieve that saved in the database and to be displayed in same cell but multi line since the data is saved in the format of <br>,it was easy for me to display it. 1- Create a new project using C# 2- Create a table in the database (SQL or MYSQL table or any other database)
3- Save some data to the table for example
4- Before you save the data to the table replace the \r\n with <br>
5- Drag and drop GridView from the Tool Kit to the web form 6-Create the following coulmns
7-Gridview will appears like this
8- Change the propert of the Message column as show below
9- Set the HtmlEncode to False 10 Write the code to fill the GridView here is a sample
11- The data will appers like this.
BackgroundIt can be used to display text file data save in the database
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You must Sign In to use this message board. | ||||||||||||||||||||||
|
||||||||||||||||||||||
|
||||||||||||||||||||||
|
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 12 Nov 2007 Editor: |
Copyright 2007 by T.Ashraf Everything else Copyright © CodeProject, 1999-2008 Web17 | Advertise on the Code Project |