Help with compiling user control into a DLL
Posted on 2008-11-19
I've been using a web user control in one of my projects to output a list of data. I'm now trying to put this into a DLL so i can just move the dll file around from project to project instead of the .ascx and .ascs.cs files. But I'm running into some difficulty. When I get it into a DLL and reference it in my test project I get an error that object isn't found. Apparently what's happening is that whatever is in my .ascx file it's not outputing. So if I do a simple test and put the "Hello World" in my .ascx file and compile it, it doesn't show up. If I do a response.write in my .ascx.cs file then it shows up. Can someone help me here? In my .ascx file I have HTML and in the .ascx.cs file I connect to the DB and pull data and output it.