Link to home
Start Free TrialLog in
Avatar of shinymoon

asked on

codebehind or codeFile???


I am using ASP.NET in C#. I want to have a popup-calendar function on my webpage. So, I found a popup-calendar in this website(  and used it for my unit-testing first. I worked fine.

So, next, I added it to my actual website. I added aspx and aspx.cs files and put the javascript calendarPicker() in my masterpage. But, somehow, it doesn't work.
First, it gave me an error "could not load type 'CalandarPopup.DataPicker'" So, I changed the "codebehind" to codeFile"
Then, it gave me an error "Missing partial modifier on declaration of type 'CalendarPopup.DatePicker'" So, I put "partial" in front of the declaration of class "DatePicker"
Then, it gives me an error that "The type 'CalendarPopup.DatePicker' already contains a definition for 'Calendar1' ". I haven't declared Calendar1 in any other place. I don't know what is the problem.

Any idea will help. Thank you.
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial