1
Answer

ASP.NET

Smart    Lucky

Smart Lucky

13y
1.7k
1
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)