09/05/01 16:16:42
だから、従来のASPやPHPの方法論を頭から全く捨てて、ASP.NETという新しい概念として理解しないとだめ
動的にアンカーの表示非表示を行うならこうすればいい
protected void Button1_Click(object sender, EventArgs e)
{
if (DateTime.Now.Month == 5)
{
this.HyperLink1.NavigateUrl = @"URLリンク(www.yahoo.co.jp)";
this.HyperLink1.Text = DateTime.Now.Month.ToString()+ "月";
this.HyperLink1.Visible = true;
}
}