If suppose in a textbox...the value i m displaying is too long. I only need to display something like this ex: someone@micros..... not the full text like ex: someone@microspan.com
If you want to limit the number of characters, do this:
<input type="text" maxlength="12">
Otherwise, I think this is what you want:
<input type="text" style="width:100px;">
Thanks for ur reply.
But, i think that will not solve my problem. Let me clear my question. If suppose,i have a comment field..where user will write a few lines. When i will show them back to the user by accessing it from database. I don't want to show the user the whole comment. While, i want to show the user a starting few words with the trailing '...'
for ex: this is my feed....
I hope i m clear this time.
please respond.
thanks
if you are selecting the data from a DB then simple take the data and give a variable that value. then as long as this is ASP use the left function to extract a portion of the variables contents out and concatinate the ... to that variable.
this is if you are using ASP/VBScript though. if not you need to specify those details as well.
left function syntax is
Left(string, length) A language that doesn't affect the way you think about programming is not worth knowing.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.