H
hharry
Hello All,
In VS 2003, I was able to add event handlers in the
InitializeComponent function. In VS 2005, I can no longer see the auto-
generated code.
I tried to add the event handler for a button in the Page_Load event,
bit this did not work.
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
this.SaveBtn.Click += new
EventHandler(this.SaveChanges);
}
}
Could somebody explain why the event handler doesn't register properly
when added in Page_Load event and what the correct procedure is for
adding event handlers in VS 2005 and if there is a way to view the
auto-generated code in VS 2005 ?
Thanks in advance!
In VS 2003, I was able to add event handlers in the
InitializeComponent function. In VS 2005, I can no longer see the auto-
generated code.
I tried to add the event handler for a button in the Page_Load event,
bit this did not work.
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
this.SaveBtn.Click += new
EventHandler(this.SaveChanges);
}
}
Could somebody explain why the event handler doesn't register properly
when added in Page_Load event and what the correct procedure is for
adding event handlers in VS 2005 and if there is a way to view the
auto-generated code in VS 2005 ?
Thanks in advance!