07 June 2011

interview questions .net User Control

Topic : User Control

Contributed by: Pinky Bhadran

Q. Can User Control be stored in a library?.
 Answer:  No

Q.How many types of controls are available?
Answer: 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 violates 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

No comments:

Post a Comment