G
Guest
Hi,
I createed a user control named fnCalender.ascx, there is a method called
getInfo defined in calender.ascx. I drag and drop this control into a web
form then I tried to call the method inside the web form using
fnCalendar1.getInfo(), the source code does not even compile with the error
message "fnCalendar1" is not declared.
I looked into the source code of code behind file, there is no fnCalendar1
defined, it looks like adding an ascx file only changes the aspx file without
declares an instance in the code behind.
Any Ideas,
Thanks in Advance
I createed a user control named fnCalender.ascx, there is a method called
getInfo defined in calender.ascx. I drag and drop this control into a web
form then I tried to call the method inside the web form using
fnCalendar1.getInfo(), the source code does not even compile with the error
message "fnCalendar1" is not declared.
I looked into the source code of code behind file, there is no fnCalendar1
defined, it looks like adding an ascx file only changes the aspx file without
declares an instance in the code behind.
Any Ideas,
Thanks in Advance