how to create a dynamic name of a web control

Can someone please fix the following script for me.

I have a list of hyperlink...

eg. article1, article2, article3

when I click one of the links it is to activate a function call nav_clicked(<enter 1,2,3> )

Code Snippet

protectedvoid nav_clicked(string articleID)

{

this.FindControl("article" + articleID).Visible=true;

this.FindControl("article" + articleID)..Attributes.Add("style","color:white");

}

Unfortunately, I cant get the attributes part working.

[1439 byte] By [borg2006] at [2008-1-7]
# 1
You will want to target the ASP.Net forums for your answer. These forums do not target asp/asp.net. Good luck!


Why Was My Post Moved Here?
OmegaMan at 2007-10-2 > top of Msdn Tech,Feedback for forums and MSDN websites,Off-Topic Posts (Do Not Post Here)...