C
Carlos
Hi all,
I need to create a set of dynamic hyperlinks in a page.
I got:
PlaceHolder mainpanel = new PlaceHolder();
foreach (DataRow row in events_table.Rows)
{
string option = "";
option = row.ItemArray[0];
HyperLink myHL = new HyperLink();
myHL.NavigateUrl = "http://www.mysite.com?opt="+option;
myHL.Text = "my option="+option;
myHL.Visible = true;
myHL.ForeColor = System.Drawing.Color.Navy;
myHL.Height = 12;
mainpanel.Controls.Add(myHL);
}
This does not display anything YET.. Thanks in advance.
Carlos.
I need to create a set of dynamic hyperlinks in a page.
I got:
PlaceHolder mainpanel = new PlaceHolder();
foreach (DataRow row in events_table.Rows)
{
string option = "";
option = row.ItemArray[0];
HyperLink myHL = new HyperLink();
myHL.NavigateUrl = "http://www.mysite.com?opt="+option;
myHL.Text = "my option="+option;
myHL.Visible = true;
myHL.ForeColor = System.Drawing.Color.Navy;
myHL.Height = 12;
mainpanel.Controls.Add(myHL);
}
This does not display anything YET.. Thanks in advance.
Carlos.