Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

On a web site, the code to handle an event coming from the usercontrol which contains my navigation bar on Windows server 2003 iis is writing like this :

navigationBar.Selec += new navigationBar_ascx.SelectEventHandler(onSelection);

on the index page of the site

and Inside the navigationBar.ascx is writing like this:
public delegate void SelectEventHandler( object sender, EventsArgs e)
public event SelectEventHandler Select;
.....

But on Windows server 2008 or 2012 iis the compilator don't accepts navigationBar_ascx?

Why this difference and how rectified this error?

Thank you
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900