Click here to Skip to main content
12,700,957 members (28,933 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# HTML
Copy the link into the textbox & Paste this link in another textbox in C#
help me
this text box for html code
Posted 14-Nov-12 1:06am
Comments
Orcun Iyigun 14-Nov-12 10:16am
   
So you have a string and you want to exclude the link from that string?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

This expects a link to be copy-and-pasted into TextBox1. When that happens, the link is also displayed in TextBox2.
private void TextBox1_TextChanged(object sender, EventArgs e)
{
    TextBox2.Text = TextBox1.Text;
}


If that's not what you're after, use the "Improve question" link to narrow down your question.
  Permalink  
Comments
Orcun Iyigun 14-Nov-12 10:15am
   
OP's comment: no no
Only part of the text
Not all
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

use jquery for get href of link and after pass the link to texbox or input

var url=$("idlink").attr("href");
$("idtexbox").val(url);
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 14 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100