Tuesday, 22 January 2013

line break in databound field gridview asp.net

Line break or new line html tags in databound field gridview asp.net:

Gridview Boundfield not allowing HTML tags, specifically < br >
Below code display a string with one or more linebreaks in an asp:gridview using <br/>. 

<asp:BoundField DataField="appText" HeaderText="Application Name"   
                        HtmlEncode="false" SortExpression="apptext"/>

No comments:

Post a Comment