I got the Answer myself...
function InsertLink()
{
var txt= document.getEle mentById("<%=te xtbox1.ClientID %>");
txt.focus();
if ((document.sele ction.createRan ge().text.lengt h)>0)
{
newRange = document.select ion.createRange ();
newRange.text = '<a href="http://www.google.com" target=_blank...
User Profile
Collapse
-
Hyperlink a selected text from a specific textbox
Hello,
In my page i have two textboxes and a html button. I'm using vb.net 2.0 . what i need is i want whatever text selected in the textbox1 to be hyperlinked when clicked the button... this is no problem.. i'm getting it easily.. But my problem is , if i select some text from the textbox2 and click the button it is also hyperlinked. i want only whatever text selected in the textbox1 to be hyperlnked and not in textbox2. Please tell... -
About Enter key in vb.net code behind
Hi,
I'm using vb.net 2005. In my code behind i wrote like this code..
[code=vbnet]
Partial Class SearchTxt
Inherits System.Web.UI.P age
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArg s) Handles Me.Load
End Sub
Protected Sub TextBox1_TextCh anged(ByVal sender As Object, ByVal e As System.EventArg s) Handles TextBox1.TextCh anged
If Not TextBox1.Text...
No activity results to display
Show More
Leave a comment: