Click here to Skip to main content
15,910,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Now i am working with asp.net. I am doing a project, something like a search engine; a personalized search engine. So i have to display result in a datalist as an anchor text, a brief description, and URL. This anchor text is displayed in a linkbutton. When clicking the anchor text, i have to go to the corresponding web page. For that, i need to get the text of that linkbutton. How can i get that text??

Please do reply..
Posted
Updated 8-Oct-10 20:05pm
v2

1 solution

Just Find Control in ItemData Bound and then you easily get Text .
LinkButton lb = (LinkButton )e.Item.FindControl("IdofLinkButton");
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900