Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 2nd, 2012, 10:36 AM
Authorized User
 
Join Date: Feb 2011
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default How to create a link so that when click on it the link word automatically ?

How to create a link so that when click on it the link word automatically
get inserted in textbox.

Please click on below link to understodd my problem.


http://www.delistedshares.co.in/


There is list of Delisted shares please click on any link.
 
Old March 3rd, 2012, 02:35 AM
Friend of Wrox
 
Join Date: Nov 2009
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Smile

Hi there.
you can use javascript codes:

HTML Code:

<asp:HyperLink runat="server" NavigationUrl="http://www.test.com" onclientclick="loadText(this);"></asp:HyperLink>

<input type="text" id="txtUrl" />

<script type="text/javascript">

function loadText(linkObj){
   document.getElementById("txtUrl").value = linkObj.href;
   return false; // avoid navigation
}

</script>

__________________
happy every time, happy every where

Reza Baiat





Similar Threads
Thread Thread Starter Forum Replies Last Post
Open link automatically in email collie HTML Code Clinic 2 May 28th, 2008 09:57 PM
Link button click event sarah lee ASP.NET 2.0 Basics 5 May 18th, 2007 09:29 AM
double click to open link thutt Dreamweaver (all versions) 0 February 8th, 2007 05:01 PM
Click on link in VB6 Perseus Beginning VB 6 1 August 30th, 2005 05:52 PM
Multiple windows on click of link spacy Javascript How-To 2 April 11th, 2005 05:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.