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.
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;
}
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>
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>
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
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>