473,327 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

add a link to the end of the text label

Hi....
I have a multi-line label that shows the first 80 characters of a long paragraph.

I need to add read-more link to the end of this label so a user click will show the whole paragraph (on a different page).
Current look:

Please, restore the database to its
latest prodcution...
read more
I need this to look like:

Please, restore the database to its
latest prodcution... read more
is this possible using two controls "Label" and "HyperLink".....
any help is very much appreaciated
Nalaka

May 10 '06 #1
2 2435
Unless you put a <br> tag or something else that will explicitly cause a line break between the Label and HyperLink, you should get the desired look anyway. In Visual Studio .NET 2003 (I haven't used 2005, so I don't know if they fixed it in that version), it places them on separate lines even if that is not how they would appear in the browser (yeah, I find this annoying too, but once you learn to recognize it, it's not that bad in most cases). You can always check by viewing your page in the browser. Also, a suggestion that I might make for your case would be to make a simple UserControl, since it looks like the only properties that you will be changing in most cases will be:

1. The paragraph text that you do show
2. The URL that the "read more" Hyperlink will take them to

If you would like, I can help you make this UserControl if you are unfamiliar with them. Good Luck!
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
"Nalaka" <na******@nospam.nospam> wrote in message news:uM**************@TK2MSFTNGP03.phx.gbl...
Hi....
I have a multi-line label that shows the first 80 characters of a long paragraph.

I need to add read-more link to the end of this label so a user click will show the whole paragraph (on a different page).
Current look:

Please, restore the database to its
latest prodcution...
read more
I need this to look like:

Please, restore the database to its
latest prodcution... read more
is this possible using two controls "Label" and "HyperLink".....
any help is very much appreaciated
Nalaka

May 10 '06 #2
Thanks...
I did not realize that, me putting the line break between the controls in what causing it.
Let me try putting in the same row.

Nalaka

"Nathan Sokalski" <nj********@hotmail.com> wrote in message news:u%******************@TK2MSFTNGP03.phx.gbl...
Unless you put a <br> tag or something else that will explicitly cause a line break between the Label and HyperLink, you should get the desired look anyway. In Visual Studio .NET 2003 (I haven't used 2005, so I don't know if they fixed it in that version), it places them on separate lines even if that is not how they would appear in the browser (yeah, I find this annoying too, but once you learn to recognize it, it's not that bad in most cases). You can always check by viewing your page in the browser. Also, a suggestion that I might make for your case would be to make a simple UserControl, since it looks like the only properties that you will be changing in most cases will be:

1. The paragraph text that you do show
2. The URL that the "read more" Hyperlink will take them to

If you would like, I can help you make this UserControl if you are unfamiliar with them. Good Luck!
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
"Nalaka" <na******@nospam.nospam> wrote in message news:uM**************@TK2MSFTNGP03.phx.gbl...
Hi....
I have a multi-line label that shows the first 80 characters of a long paragraph.

I need to add read-more link to the end of this label so a user click will show the whole paragraph (on a different page).
Current look:

Please, restore the database to its
latest prodcution...
read more
I need this to look like:

Please, restore the database to its
latest prodcution... read more
is this possible using two controls "Label" and "HyperLink".....
any help is very much appreaciated
Nalaka

May 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kwart246 | last post by:
Hello, Is it possible to use a text link to enable a radio button, just like some windows interfaces, when the text is clicked, the radio button gets selected..... This works for a checkbox:...
7
by: Tempy | last post by:
Good morning, i have a table "tblQSPTotals" whith the fields "QspName" and "Project Parts". The first obviously has all the QSP name in and next to it the Project Parts which is total parts. I...
6
by: Rod Snyder | last post by:
I'm trying to set up a page with an asp.net link button that would send a user to a certain page and on page load execute a specific stored procedure tied to the button on the previous page. The...
1
by: Darren Clark | last post by:
I have a link button that i would like to be used if the value of the text is NOT 0... So the code below will always make a linkbutton.... However if the value of...
5
by: Luis E Valencia | last post by:
I need a link on a datagrid, the link must have fields of the database Like this acciones.aspx?iddireccion=1&idindicador=4 Thanks
8
by: David | last post by:
This is something I had never seen before. On an aspx page, upon pressing a link button for which I have an event handler in the code behind, the screen shows nothing but a line that says "true"...
1
by: asad | last post by:
Hello, i'm working on a greeting card website, there is a page where i'm showing greeting cards, i have done paging on this page with using Datalist and its working well but i have a problem is...
3
by: Mark Ivey | last post by:
VS.Net 2002 - Visual Basic I am pretty new to VB in general, and I am having a bit of difficulty finding the right method or property to link a textbox to a filelistbox. Here is the...
2
by: XolileWarren | last post by:
Can anyone help? I have a gridview and two link buttons;back and previous to navigate back and forward the page is working fine on Opera but the link button is not active when using FireFox and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.