How to asp:Literal with more..?
-
Hi,. I am using this to display text from database within asp:Literal:
I want to know how can I limit the display to x number of characters with more link to display the full text just like the facebook comments?
Technology News @ www.JassimRahma.com
-
Hi,. I am using this to display text from database within asp:Literal:
I want to know how can I limit the display to x number of characters with more link to display the full text just like the facebook comments?
Technology News @ www.JassimRahma.com
Through literal you can not do in css until you putting it into label or span or div. You can truncate your string in your code the you can display here. If you want to use in css then find very clear example to support most of the browser http://mattsnider.com/css-string-truncation-with-ellipsis/[^]
Parwej Ahamad
-
Hi,. I am using this to display text from database within asp:Literal:
I want to know how can I limit the display to x number of characters with more link to display the full text just like the facebook comments?
Technology News @ www.JassimRahma.com
when you are binding the values from any source.create another alias in your selection query. ex: select fullname,left(fullname,20) as shortname from tablename the 20 mentioned can be of your need.and then bind the shortname to literal.it works.
-
Hi,. I am using this to display text from database within asp:Literal:
I want to know how can I limit the display to x number of characters with more link to display the full text just like the facebook comments?
Technology News @ www.JassimRahma.com
when you are binding the values from any source, create another alias in your selection query.
ex: select fullname,left(fullname,20) as shortname from tablename
the 20 mentioned can be of your need.and then bind the shortname to literal.it works.