Results 1 to 6 of 6

Thread: Creating a Clickable URL in Textbox

  1. #1
    Join Date
    Nov 2009
    Posts
    140

    Creating a Clickable URL in Textbox

    Hello, I am learning asp.net and while learning it I want to create a Textbox which will be the clickable. I want to create a Clickable URL in Textbox with the help of the asp.net. If you know, how can I able to get solution for it,then please help me to achieve it. I will be thankful to you for your reply.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Creating a Clickable URL in Textbox

    Hello, for getting the solution for your this problem you must need to make use of the code below:
    Code:
    function OnClick()
    {
    var tObj = this.parentNode;
    if(tObj.tagName!='TABLE')tObj = tObj.parentNode;
    if(activeRowClickArray[tObj.id] && this!=activeRowClickArray[tObj.id]){
    activeRowClickArray[tObj.id].className='id';
    }
    this.className = arrayOfClickClasses[tObj.id];
    activeRowClickArray[tObj.id] = this;
    }

  3. #3
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Creating a Clickable URL in Textbox

    If you want to add the email address in your Text box then you can simply make use of the code below and get your problem solved :
    Code:
    <div style="border:solid 2px blue; height:10px; width:150px;">
    <asp:HyperLink id="hyperlink1" runat="server" NavigateUrl="mailto:ta@techarena.com"/>
    </div>

  4. #4
    Join Date
    May 2008
    Posts
    2,012

    Re: Creating a Clickable URL in Textbox

    I have got the way for creating a clickable url in a textbox. It is so simple to use and I think you will able to get the solution for your problem by simply making use of it. So use it:
    Code:
    <TextBlock>
    Hello, use the link below:
    <Hyperlink NavigateUri="http://forums.techarena.in/software-development/" Click="cnn_Click">Test</Hyperlink>
    </TextBlock>

  5. #5
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Creating a Clickable URL in Textbox

    Hello, I think for getting the solution for your problem if you make use of the books below then it will be helpful to you:
    • The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks
    • Murach's ASP.NET 2.0 Web Programming with VB 2005
    • Murach's ASP.NET 2.0 Web Programming with C# 2005
    • Build Your Own ASP.NET Website Using C# & VB.NET
    • Pro ASP.NET 2.0 in C# 2005
    • Inside ASP.NET Web Matrix

  6. #6
    Join Date
    May 2008
    Posts
    2,297

    Re: Creating a Clickable URL in Textbox

    Hello, I am not sure but you need to make use of the logic such as below given. So, just understand it and get your problem solved:
    Code:
    <TextBlock>
        <TextBlock Text="Click on this link"/>
        <Hyperlink url={Binding ElementName=topic, Path=SelectedValue.Title}
                               Click="Url_Click">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="add " FontWeight="Bold"/>
                <TextBlock Text={Binding ElementName=topic, Path=SelectedValue.Url}/>
            </StackPanel>
        </Hyperlink>
    </TextBlock>

Similar Threads

  1. Creating a password box in vb with textbox control?
    By RadhaV in forum Software Development
    Replies: 5
    Last Post: 28-03-2012, 08:15 AM
  2. Replies: 2
    Last Post: 20-08-2010, 01:23 AM
  3. Need help with Clickable Comment Url
    By Metoac in forum Technology & Internet
    Replies: 6
    Last Post: 24-06-2010, 01:11 AM
  4. How to make pictures clickable?
    By mellisahi in forum Windows Software
    Replies: 2
    Last Post: 27-07-2009, 09:49 PM
  5. Clickable image in frame
    By Randolphs in forum Software Development
    Replies: 3
    Last Post: 04-04-2009, 09:16 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,674,958,012.93565 seconds with 16 queries