hello
i want to display product discription on display page.
description field is long text
so label is NOT giving the good output
which control should i use?
Which control to use to display long text
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Jorge L FernandezRank #7,688 · 236 reputationPosted Nov 6, 2009, 8:20 AM EST
Try the Literal control.
Rene Garcia2 reputationPosted Nov 6, 2009, 9:44 AM EST
Below is the code of the text box:
Amit ChoudharyRank #145 · 15.8K reputationPosted Nov 6, 2009, 7:50 PM EST
use literal control like this...
LiteralControl LtCtrl = new LiteralControl();
LtCtrl.Text=ProductDescription;
LtCtrl.Text += "
Now Drag n Drop a place holder control from ToolBox on you webpage..
and add the Literal Control to the Placeholder..
placeholder1.Controls.Add(ltATPCLP);
and done..
Enjoy Coding..
===========================================
Mark it as answer if it helps :)
Dipa AhujaRank #1,168 · 1.5K reputationPosted Nov 7, 2009, 5:02 AM EST