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?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jorge L FernandezPosted Nov 6, 2009, 1:20 PM
Try the Literal control.
Dipa AhujaPosted Nov 7, 2009, 10:02 AM
Amit ChoudharyPosted Nov 7, 2009, 12:50 AM
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 :)
Rene GarciaPosted Nov 6, 2009, 2:44 PM
Below is the code of the text box: