Smart    Lucky

Smart Lucky

  • NA
  • 555
  • 639.1k

ASP.NET

Mar 25 2011 4:00 AM
Aslam-0-Alaikum


public partial class _Default : System.Web.UI.Page 
{
    public _Default()
    {
        
        Init += new EventHandler(_Default_Init);

        Load += new EventHandler(_Default_Load);

        PreRender += new EventHandler(_Default_PreRender);
    }

    protected void _Default_PreRender(object sender, EventHandler e)
        {
                Response.Write("This is prerender event");
        }

    protected void _Default_Load(object sender, EventArgs e)
    {
        Response.Write("This is load event");
    }
    protected void _Default_Init(object sender, EventArgs e)
    {
        Response.Write("This is int enet");
    }
}



Error1No overload for '_Default_PreRender' matches delegate 'System.EventHandler'D:\ASP\Asp Prectice\PostBack2\Default.aspx.cs2322D:\...\PostBack2\




This is showing error which i can't understand what it mean............?













Answers (1)