This question is locked. New answers and comments are not allowed.
Hello,
I'm using a number of User Controls, which are all defined in web.config using the tagname/prefix and source. When I add them to a page, and refer to them using the ID in the code behind, to set properties and such things, I get a JustCode error and also when I add an event listener in the code behind.
For example,
gives the two errors:
"The type 'Controls_Products_ProductsList' is defined in an assembly that is not referenced." (the first bit is underlined)
"Unknown entity 'Controls_Products_ProductsList'. Maybe a reference to [location of the current project] is missing." (the bit just after new is underlined)
Everything works fine and as expected, I just have 156 JustCode errors in 8 files which are all related to that, which makes it a little annoying to search for ones that might actually break something.
Now my question is, am I doing the usercontrol thing all wrong, or is this a bug in JustCode? If the first, how should it be done?
Thanks
I'm using a number of User Controls, which are all defined in web.config using the tagname/prefix and source. When I add them to a page, and refer to them using the ID in the code behind, to set properties and such things, I get a JustCode error and also when I add an event listener in the code behind.
For example,
LatestProductList.Selected += new Controls_Products_ProductsList.SelectedEventHandler(LatestProductList_Selected); |
"The type 'Controls_Products_ProductsList' is defined in an assembly that is not referenced." (the first bit is underlined)
"Unknown entity 'Controls_Products_ProductsList'. Maybe a reference to [location of the current project] is missing." (the bit just after new is underlined)
Everything works fine and as expected, I just have 156 JustCode errors in 8 files which are all related to that, which makes it a little annoying to search for ones that might actually break something.
Now my question is, am I doing the usercontrol thing all wrong, or is this a bug in JustCode? If the first, how should it be done?
Thanks