wordwrap in asp:Literal
-
I am retrieving a formatted html from my sql server text field into asp:Literal... I want ti know how to set the wordwrap for the asp:Literal?
-
I am retrieving a formatted html from my sql server text field into asp:Literal... I want ti know how to set the wordwrap for the asp:Literal?
Enclose your literal in a div tag and set the width of that div.
Anurag Gandhi.
http://www.gandhisoft.com
Life is a computer program and every one is the programmer of his own life.
My latest article: Group GridView Data -
Enclose your literal in a div tag and set the width of that div.
Anurag Gandhi.
http://www.gandhisoft.com
Life is a computer program and every one is the programmer of his own life.
My latest article: Group GridView DataNo, you don't need to wrap it in a div. The literal control will be rendered as a span which you should apply appropriate CSS styles to. From all of the responses you have given you have much to learn before giving solid advice to others.
I know the language. I've read a book. - _Madmatt
-
No, you don't need to wrap it in a div. The literal control will be rendered as a span which you should apply appropriate CSS styles to. From all of the responses you have given you have much to learn before giving solid advice to others.
I know the language. I've read a book. - _Madmatt
Can you please try the following code at your system?
<asp:Literal ID="myLiteral" runat="server" Text="Hello World"></asp:Literal>
Mark Nischalke wrote:
The literal control will be rendered as a span
I looked at the html source generated from browser. There is no
span
at all. Please let me know if I am wrong. He is talking about Literal Control not the Label Control.Mark Nischalke wrote:
From all of the responses you have given you have much to learn before giving solid advice to others.
Well, no one is perfect. Nither me nor you. We all are learning. I am just trying my best to help others by sharing my opinion/experience.
Anurag Gandhi.
http://www.gandhisoft.com
Life is a computer program and every one is the programmer of his own life.
My latest article: Group GridView Data -
Can you please try the following code at your system?
<asp:Literal ID="myLiteral" runat="server" Text="Hello World"></asp:Literal>
Mark Nischalke wrote:
The literal control will be rendered as a span
I looked at the html source generated from browser. There is no
span
at all. Please let me know if I am wrong. He is talking about Literal Control not the Label Control.Mark Nischalke wrote:
From all of the responses you have given you have much to learn before giving solid advice to others.
Well, no one is perfect. Nither me nor you. We all are learning. I am just trying my best to help others by sharing my opinion/experience.
Anurag Gandhi.
http://www.gandhisoft.com
Life is a computer program and every one is the programmer of his own life.
My latest article: Group GridView DataYes, my mistake, I misread and thought Label
I know the language. I've read a book. - _Madmatt
-
Yes, my mistake, I misread and thought Label
I know the language. I've read a book. - _Madmatt
no problem. :)
Anurag Gandhi.
http://www.gandhisoft.com
Life is a computer program and every one is the programmer of his own life.
My latest article: Group GridView Data -
I am retrieving a formatted html from my sql server text field into asp:Literal... I want ti know how to set the wordwrap for the asp:Literal?
format the html text puting a div with word-wrap:break-all style attribute.