T
Tony Johansson
Hello!
If you have this simple code in the code behind file.
I just wonder if you ever use this type of coding that is used in win forms
?
helpButton.Click += new System.EventHandler(Button1_Click);
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
helpButton.Text = "HELP";
helpButton.BackColor = Color.LightCoral;
}
protected void Button1_Click(object sender, EventArgs e)
{
helpButton.Text = "You have hit me";
}
}
//Tony
If you have this simple code in the code behind file.
I just wonder if you ever use this type of coding that is used in win forms
?
helpButton.Click += new System.EventHandler(Button1_Click);
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
helpButton.Text = "HELP";
helpButton.BackColor = Color.LightCoral;
}
protected void Button1_Click(object sender, EventArgs e)
{
helpButton.Text = "You have hit me";
}
}
//Tony