Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to add link to input field

Status
Not open for further replies.

cat5ives

Programmer
Sep 13, 2011
11
US
Hi,

I have an asp page that display clientname in input box (read only). I want to be able to click on client anme and it take me to another page, custdetail.asp. How can I do that?

<td width="130" > <input class="ver10pxblk" type="text" readonly size="22" value="<%= clientname %>"> </td>

Thanks in advance
 
Would this do it?
Code:
<td width="130"><a href="custdetail.asp"><%=clientname%></a></td>
 

Thanks xwb but this won't work. it has to show in input box.
 
Does it have to be an input box or a box with a border? If it is a box with a border, set the border width in your td element.
 
xwb, can you please provide sample code for a box with a border?
 
Something like this will give you a red border, 2 pixels wide with a 4 pixel border around it.
Code:
<td style="border:solid 2px #FF0000; padding:4px">
<a href="[URL unfurl="true"]http://www.tek-tips.com/viewthread.cfm?qid=1719004">This[/URL] question</a></td>
 
xwb, this will do. Thank you so much for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top