Link to home
Start Free TrialLog in
Avatar of rshafakian
rshafakian

asked on

Help with compiling user control into a DLL

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.
Avatar of rshafakian
rshafakian

ASKER

BTW I went through this tutorial http://msdn.microsoft.com/en-us/library/aa479318.aspx and still could not get it to work.  I created a simple user control that says Hello in the .ascx file and if I test it as a user control then it works.  But once I compile it and reference the DLL in my test site it doesn't spit out the Hello.  
ASKER CERTIFIED SOLUTION
Avatar of rshafakian
rshafakian

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial