Valeria_Mississippi
New Member
I am working in a asp.net project(ASP.NET 4.0,c#,WebForms).I need to add a function to the Page Load event based on some conditions in Page Prerender event.How can i achieve this.I tried the following code,\[code\]Page_Load += new EventHandler(delegate(object sender, EventArgs e) { ShowForm(); });\[/code\]But it doesn't work.Can someone provide some insight on this?