|
Hi everyone,
I'm displaying a large amount of text in a label and the whole page gets out of shape when I do that. Can anyone give me an idea of how to make the text wrapable in a Label control.
Thanks
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
Rocky# wrote: Label control
That would render as a SPAN right?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
offcourse!!
So that mean I need to put in BR's at the right places. RIGHT
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
Yup. HTML can not understand just NewLines and CRLFs, unless it is within a PRE tag. You ought to inject enough BR tags to force line breaks.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
Use CSS styles is the proper way for this, forget all the br tags nonsense, it isn't extensible or supportable.
only two letters away from being an asset
|
|
|
|
|
actually Im a bit weak with CSS at the moment. But I was wondering how CSS Styling can make text wrapping possible. bcz its simply a straight long text how will the browser know where it needs to put a br?
Can u plz elaborate on that
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
If you put you label in a table cell, for example and constrain the width of the table, then the text will wrap on it's own. It's not so complicated. Unless, of course, you don't have any spaces, in which case, then good luck.
|
|
|
|
|
Tables are unnecessary just to format and display text. They are slower to render and very much overkill for this purpose.
only two letters away from being an asset
|
|
|
|
|
Yes, but they make for a nice simple example on a Friday afternoon, for someone that's obviously having quite a bit of trouble with a simple concept...
|
|
|
|
|
as opposed to showing correct methods that are more supportable and extensible, you show what is most expedient.
Didn't get the impression that the OP was "having quite a bit of trouble with a simple concept"
only two letters away from being an asset
|
|
|
|
|
Friday afternoon is just a great time for expedience... )
|
|
|
|
|
yea that worked. Thanks a lot everyone esp yo u Paddy. Cheers...
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
|
i want to use store procedure in database for my web application,but i don't know anything about it.plz it's urgent i want code how to write store procedure and how to call it in code side portion?
|
|
|
|
|
|
Hi,
I need to upload a file for that i want to use file upload control but also I have to changed the css of that button and the textbox of that control. Finally I coudn't changed the css. So that I used the html input file control but the same problem is remain same. Is there any solution?
Pankaj
|
|
|
|
|
|
java script code for popup window.
popup window should be remaining till submitting,
means it should not be minimized when click on outside the window and other functions(outside popup window) should not work either without submitting or till closing window explicitely.
when I will submit some task will be performed and popup window will be closed.
please help me
I need......
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
|
Did you try using ShowModalDialog?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Try reading the other replies before responding. This was already suggested almost 3 hours before your post.
only two letters away from being an asset
|
|
|
|
|
Hi guys
y sorry to ask agaian & again,
I spend last 2 days for this report viewer charts control,
But i didnt succeed,
Plz any one help me,
I am using sqlserver2000 database and asp.net 2.0 version,
Pzl any one help me
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
|
I dont have any idea about report viewer and its chart control,
So i need some articles and sample codes,
I fetched lot,
but i didnt get any proper format,
so i asked my quest here,
help me
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|