Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 23-02-2010
Member
 
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.
Reply With Quote
  #2  
Old 23-02-2010
Member
 
Join Date: Jan 2008
Posts: 1,515
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;
}
Reply With Quote
  #3  
Old 23-02-2010
Member
 
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>
Reply With Quote
  #4  
Old 23-02-2010
Member
 
Join Date: May 2008
Posts: 2,008
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>
Reply With Quote
  #5  
Old 23-02-2010
Member
 
Join Date: Apr 2008
Posts: 2,001
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
Reply With Quote
  #6  
Old 23-02-2010
Member
 
Join Date: May 2008
Posts: 2,293
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>
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Creating a Clickable URL in Textbox"
Thread Thread Starter Forum Replies Last Post
Creating a password box in vb with textbox control? RadhaV Software Development 5 28-03-2012 08:15 AM
Excel/VBA: Copying text from UserForm Textbox to a Worksheet Textbox Neil Ives Software Development 2 20-08-2010 01:23 AM
Need help with Clickable Comment Url Metoac Technology & Internet 6 24-06-2010 01:11 AM
How to make pictures clickable? mellisahi Windows Software 2 27-07-2009 09:49 PM
Clickable image in frame Randolphs Software Development 3 04-04-2009 09:16 PM


All times are GMT +5.5. The time now is 04:43 AM.