Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 28th, 2009, 09:54 AM
Registered User
Join Date: Aug 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with LinkButton

I would like to create a LinkButton on any term in the database that is enclosed by <term></term> tags. My problem is how do I create the LinkButton in the database and not how I currently have it working. Right now I am storing the matched term in a placeholder.

foreach (DataRow row in rows)

System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex("(?<=<term>). *(?=</term>)");
System.Text.RegularExpressions.Match match = regex.Match(row["Definition"].ToString());

LinkButton lb1;
lb1 = new LinkButton();
lb1.Text = match.ToString();

lb1.Click += new EventHandler(lb1_Click);


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linkbutton array yukijocelyn ASP.NET 2.0 Basics 4 September 7th, 2007 02:06 AM
WebControls.LinkButton Ric_H ASP.NET 2.0 Basics 1 January 28th, 2006 08:00 AM
linkbutton control jake ASP.NET 1.0 and 1.1 Basics 1 December 6th, 2005 02:30 PM
linkbutton Beulah VS.NET 2002/2003 3 October 10th, 2005 05:00 PM
linkbutton and autopostback jtyson ASP.NET 1.0 and 1.1 Basics 0 July 10th, 2003 11:22 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.