Last post Jan 23, 2007 06:11 PM by SarahBenjamin
Nov 27, 2006 02:02 AM|SarahBenjamin|LINK
I am trying to use a usercontrol which is in a seperate project into my new project. Can I do that. Both projects are in their seperate solutions. I just need to drag the user control of the other project onto a webform page of 2nd project. Is that
Nov 30, 2006 06:21 PM|jrokita|LINK
What you need to do is recreate the usercontrol in your new project.
An easy way to do this is have two instances of Visual Studio open: One open to your new project, and one to old old project with the control you want.
1) create a new control in your new project having the same name as the control you want. Swith display mode to HTML.
2) Open old control .ascx file in HTML mode and copy all code except the top line into your new control.
3) Clean up any loose ends (such as references to stylesheets) as needed.
Hope this helps!
Jan 23, 2007 06:11 PM|SarahBenjamin|LINK
Other than Copy pasting the code, there is no way I can use the built control right?
But thanks for your help on this