G
Guest
Hello All,
From one week rather developing any code i have been discovering BUGS in asp.net,
Please help me out on this!
I have class say 'Handler' which inherits System.Web.UI.Page,
and i have put in a seperate DLL,
The code is show below:
using System;
using System.Web;
namespace FCTest1
{
public class Handler : System.Web.UI.Page
{
protected override void OnLoad(EventArgs args)
{
}
}
}
Now i inherit by wepage class from 'Handler' class instead of System.Web.UI.Page (it does not make a difference as Handler class inherits from System.Web.UI.Page)
Here is the simple code:
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using FCTest1;
namespace FCWebTest1
{
public class WebForm1 : FCTest1.Handler
{
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
int i = 1; //<----- Control never reaches here!!! Help me out please!
Response.Write("Hello");
}
}
}
Now the problem is the Page gets loaded and the Page_Load never gets called!!!, the control simply does not reach there at all!!!!
Is this a BUG?? is there any workaround for this???
Please help me out asap!
I really in need of solutions, you can mail me at : (e-mail address removed)
Thanks in advance
NGM
From one week rather developing any code i have been discovering BUGS in asp.net,
Please help me out on this!
I have class say 'Handler' which inherits System.Web.UI.Page,
and i have put in a seperate DLL,
The code is show below:
using System;
using System.Web;
namespace FCTest1
{
public class Handler : System.Web.UI.Page
{
protected override void OnLoad(EventArgs args)
{
}
}
}
Now i inherit by wepage class from 'Handler' class instead of System.Web.UI.Page (it does not make a difference as Handler class inherits from System.Web.UI.Page)
Here is the simple code:
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using FCTest1;
namespace FCWebTest1
{
public class WebForm1 : FCTest1.Handler
{
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
int i = 1; //<----- Control never reaches here!!! Help me out please!
Response.Write("Hello");
}
}
}
Now the problem is the Page gets loaded and the Page_Load never gets called!!!, the control simply does not reach there at all!!!!
Is this a BUG?? is there any workaround for this???
Please help me out asap!
I really in need of solutions, you can mail me at : (e-mail address removed)
Thanks in advance
NGM