Click here to Skip to main content
15,886,046 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
<asp:Label ID="lbl_pname" runat="server" Text='<%#Eval("pname")%>' CssClass="p_name" />
<asp:Label ID="lbl_pprice" Text="price: Rs." runat="server" CssClass="plbl" /> <asp:Label ID="Label2" runat="server" Text='<%#Eval("pprice")%>' CssClass="p_price" /><br />
                <asp:Label ID="lbl_brand" Text="Brand: " runat="server"  CssClass="plbl"/><asp:Label ID="lbl_pbrand" runat="server" Text='<%#Eval("pbrand")%>' /><br />
                <asp:Label ID="lbl_date" Text="Updated on: " runat="server"  CssClass="plbl"/><asp:Label ID="lbl_pdate" runat="server" Text='<%#Eval("pdate")%>' /><br />
                <asp:Label ID="lbl_description" Text="Description: " runat="server"  CssClass="plbl"/><asp:Label ID="lbl_pdescription" runat="server" Text='<%#Eval("pdescription")%>' /><br /> 


the above line of code we have pname,pprice,brand,pdate and description while inserting the line inside the description it shows one line of paragraph and i want to break the paragraph into multiple line can anyone help me to solve this problem??
Posted
Updated 30-Oct-14 23:46pm
v2

From what i understood from your question, i think you want to display pname,pprice,brand,pdate and description in each line. if this is what you required then you can put these things in to a HTML table
 
Share this answer
 
Comments
[no name] 31-Oct-14 5:51am    
i want to display the description text in multiple line... where i insert a long line of text from the admin and i want to show this text in multiple line in my front end...
Try using a mutiline text box to display description .

<asp:TextBox runat="server" ID="txtdesc" TextMode="MultiLine" Rows="10" Wrap="true" />
 
Share this answer
 
Comments
[no name] 31-Oct-14 6:44am    
thank you for the answer.. i tried it but this code is not solve what i need sir...
You can wrap the label into a DIV and assign a width accordingly.

ASP.NET
<asp:label id="lbl_description" text="Description: " runat="server" cssclass="plbl"/>
<div style="width:20%;">
<asp:label id="lbl_pdescription" runat="server" text="<%#Eval("pdescription")%>"/>
</div>
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900