Click here to Skip to main content
Sign Up to vote bad
good
See more: C#HTMLLink
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 - 0:06

Comments
Orcun Iyigun - 14 Nov '12 - 10:16
So you have a string and you want to exclude the link from that string?

2 solutions

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:15
OP's comment: no no Only part of the text Not all
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
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 8,123
1 OriginalGriff 6,040
2 CPallini 3,432
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 14 Nov 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid