Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 2nd, 2012, 09:36 AM
Authorized User
Points: 86, Level: 1
Points: 86, Level: 1 Points: 86, Level: 1 Points: 86, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
  #2 (permalink)  
Old March 3rd, 2012, 01:35 AM
Friend of Wrox
Points: 742, Level: 10
Points: 742, Level: 10 Points: 742, Level: 10 Points: 742, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Location: Tehran, Iran
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 04: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



All times are GMT -4. The time now is 05:39 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.