Multiline in a Label?
-
Hi I struck with an application in that I have a Label which is used to filled with a column of the Table, the column contains huge text. The Label is displaying the whole text in a single line, making the page to strech along the text I want to cut down the Text into multiple lines and display it in the Label. How can I implement this. I am using DataRow to fill the Label. Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
-
Hi I struck with an application in that I have a Label which is used to filled with a column of the Table, the column contains huge text. The Label is displaying the whole text in a single line, making the page to strech along the text I want to cut down the Text into multiple lines and display it in the Label. How can I implement this. I am using DataRow to fill the Label. Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
GIve fixed width in pixel to Label Best Regard Pathan
GOD HELP THOSE WHO HELP THEMSELVES
-
GIve fixed width in pixel to Label Best Regard Pathan
GOD HELP THOSE WHO HELP THEMSELVES
Use \n in string
-
Use \n in string
Neema Why did u reply to me? Reply to Chand10
---------------------------------------------------
-
Hi I struck with an application in that I have a Label which is used to filled with a column of the Table, the column contains huge text. The Label is displaying the whole text in a single line, making the page to strech along the text I want to cut down the Text into multiple lines and display it in the Label. How can I implement this. I am using DataRow to fill the Label. Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
-
Hi I struck with an application in that I have a Label which is used to filled with a column of the Table, the column contains huge text. The Label is displaying the whole text in a single line, making the page to strech along the text I want to cut down the Text into multiple lines and display it in the Label. How can I implement this. I am using DataRow to fill the Label. Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
ASP.NET will render
Label
control to normal HTML span. So you can give aHTML Line break ( <br /> )
to break the line.
-
Hi I struck with an application in that I have a Label which is used to filled with a column of the Table, the column contains huge text. The Label is displaying the whole text in a single line, making the page to strech along the text I want to cut down the Text into multiple lines and display it in the Label. How can I implement this. I am using DataRow to fill the Label. Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
Use Environment.NewLine to introduce a line break.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
GIve fixed width in pixel to Label Best Regard Pathan
GOD HELP THOSE WHO HELP THEMSELVES
-
Use Environment.NewLine to introduce a line break.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Thank for replying. How to to use Environment.NewLine with a Label.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
The string that is to be displayed, should include Enviroment.NewLine whenever you want a line break in the text.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
ASP.NET will render
Label
control to normal HTML span. So you can give aHTML Line break ( <br /> )
to break the line.
-
Use Environment.NewLine to introduce a line break.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Christian Graus wrote:
Use Environment.NewLine to introduce a line break.
I doubt, will it work on ASP Label ?
-
The string that is to be displayed, should include Enviroment.NewLine whenever you want a line break in the text.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Thank for replying. How to to use Environment.NewLine with a Label.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
-
Plz suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
If you're using ASP.NET, then you need to insert a
tag instead. I can't percieve of how you'd need an example. A label is just a div with text in it, and in HTML, the text just flows until you have a break tag. If you don't know that, you need to buy a book and read it. string s = "This is the first line
this is the second line"; Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum ) -
If you're using ASP.NET, then you need to insert a
tag instead. I can't percieve of how you'd need an example. A label is just a div with text in it, and in HTML, the text just flows until you have a break tag. If you don't know that, you need to buy a book and read it. string s = "This is the first line
this is the second line"; Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )Ohhh!I think u did not get my Question. I am not asking, How to insert a BreakLine Tag. I am asking, How to SPLIT a Large sentance(a single record from the table) to some lines coming from DataBase before giving it to the Label, so that the record is displayed as a paragraph in the lable not as a sentence. Anyway thank u for u r reply
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
-
Ohhh!I think u did not get my Question. I am not asking, How to insert a BreakLine Tag. I am asking, How to SPLIT a Large sentance(a single record from the table) to some lines coming from DataBase before giving it to the Label, so that the record is displayed as a paragraph in the lable not as a sentence. Anyway thank u for u r reply
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
chand10 wrote:
Ohhh!I think u did not get my Question. I am not asking, How to insert a BreakLine Tag.
Why don't you tell this in the beginning ?
chand10 wrote:
I am asking, How to SPLIT a Large sentance(a single record from the table) to some lines coming from DataBase before giving it to the Label, so that the record is displayed as a paragraph in the lable not as a sentence.
CSS having a property called
wraptext
. Try using that. But it is IE specific. Alternatively you can use substring to cut your big sentence and insert line break. This will display like a paragraph.
-
Hi I struck with an application in that I have a Label which is used to filled with a column of the Table, the column contains huge text. The Label is displaying the whole text in a single line, making the page to strech along the text I want to cut down the Text into multiple lines and display it in the Label. How can I implement this. I am using DataRow to fill the Label. Suggest me an example.
I have not failed. I've just found 10,000 ways that won't work. -Thomas A. Edison Thank u Chandu
If ur text contains whitespace char then no need to do anything.It will be automatically taken in new Line. I thing ur text doesn't contains any whitespace char and thats why this problem arises Best Regard Pathan
---------------------------------------------------