How to change wrapper class name?

Topics: User Forum
Feb 6, 2007 at 7:18 AM
I'd like to know, whether there is an option to change auto-generated wrapper class name.
I have a public Class1 in Class1.aspx. I'd like to have a resource file with the same name, i.e. Class1.resx.
The tool generates a wrapper Class1 as internal class so there is a conflict in class access modifiers.
I'd like to have an ability to change generated wrapper class name.

Your tool is really awesome, thanks.
Feb 6, 2007 at 2:34 PM
In web projects, you have to place resource files in to App_GlobalResources folder otherwise they may not work correctly. Once in that folder, you can refer to resource entries using Resources namespace (ie: Resources.Class1.EntryName)

Feb 7, 2007 at 12:52 PM

Yes, I agree it works in Web projects case, but what to do when I have a class library project?
Feb 13, 2007 at 7:08 PM

You can enter your own custom namespace for the class in the file properties for the resource file. This is not possible with web sites though, and I think the class name will still be same but since it will be under a different namespace so there should be no more conflict.