What I should answer person on interview on question “Can User Control be stored in library?”. The correct answer – Yes, but interviewer demanding that correct answer – No because User controls are not pre-compilable

Yes

Showing Answers 1 - 6 of 6 Answers

Haoest

  • Dec 22nd, 2007
 

You should ask "which library?"

You probably can't store it in .NET's standard library, but if you are creating a user control library of your own, then why not.

  Was this answer useful?  Yes

u495x

  • Jan 31st, 2008
 

I will say "NO"

there are 3 types of controls:
1) User Control
2) Custom Control
3) Web parts

you can reuse User control in the current project in which you have built it, but you can't move it to other project as unless you just copy paste the same file there and make the changes for that project ( which violets the concept of library).

but custom control can be shared between projects. and you can precompile them even as a dll, so this means you can use them in library of any type.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions