1
Vote

CodeBehind in autogenerated filters fail

description

Not sure if it is just me, but after i dragged the DynamicFilterRepeater onto the UI it asked me if I wanted to generate the FilterTemplates, to which I answered yes.
 
The resulting code stil had $rootnamespace$ everywhere, but that was easily handled.
 
The compiler then complained that it wasn't able to find the new types. I.e. Unable to load type 'Text_Contains'
 
The problem was that the generated ascx file used CodeBehind="Text_Contains.ascx.cs" instead of CodeFile="Text_Contains.ascx.cs". After changing this, the filtering unit compiled
and worked for me.
 
I use VS2008 SP1, and I used the installer from sep 30th with toolbox installer.

comments

Soraz wrote Oct 16, 2008 at 2:11 PM

Just a thought: I was adding the Dynamic Data Filter to a project generated by the Dynamic Data Wizard (http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=14474), which may or may not be different from a clean Dynamic Data project. Maybe one of them generates a Web Application and the other a Web Site ?

jheyse wrote Oct 16, 2008 at 3:58 PM

Yeah you are the second person to have this issue. I'm not sure if the Wizard was used by the previous user. I've only tested the AutoGenerated filters in a Dynamic Data Project, not a site. I'll give that a try.

Thanks for the detailed bug description. This should be pretty easy to reproduce.

wrote Feb 14, 2013 at 3:41 AM