how to display multiline text with out using textbox

27 views
Skip to first unread message

vinod kumar

unread,
Feb 3, 2012, 2:23:16 AM2/3/12
to dotnetde...@googlegroups.com
ASP.net
i am collecting (max 1000 character long ) text from user using textbox-(labeled about me)
after submit
i want to display this data completely in a DIV tag.
i tried it with a txtbox placing inside this DIV, but textbox wont resize automattically based length of content ,  so that DIV also resize.
is there any control or idea do u have to solve this prblm


i am using masterpage



Chuck

unread,
May 15, 2012, 12:19:32 AM5/15/12
to dotnetde...@googlegroups.com
Not sure why you would need to do this, but can't you just put a label in the div, and on the postback, set the value of the textbox to the value of the label?

Rene Felix Correa

unread,
May 15, 2012, 7:30:35 AM5/15/12
to dotnetde...@googlegroups.com
You can put the textbox with multiline, or put a label with autosize equals true or you can set the DIV with runat="server" and in the code behind you put in the property innerHtml or innerText.

--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to dotnetde...@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopm...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net



--
Rene Felix Correa
Analista Desenvolvedor
http://renefc3.wordpress.com

mano zahid

unread,
May 15, 2012, 11:43:37 AM5/15/12
to dotnetde...@googlegroups.com
this can be done in javascript without placing any label or textbox inside a div

<script type="text/javascript">
var div = document.getElementById('divID');

div
.innerHTML = 'your data';
</script>


Date: Mon, 14 May 2012 21:19:32 -0700
From: Charles.P...@gmail.com
To: dotnetde...@googlegroups.com
Subject: [DotNetDevelopment] Re: how to display multiline text with out using textbox
Reply all
Reply to author
Forward
0 new messages