Interview Questions for freshers part -3



Q1)What are User Controls and Custom controls?
Ans)

Custom controls are control build entirely in code. The pro is that you can put them in libraries, add an icon to the toolbox and other fine control.

User controls are more easy to do, and in general is a way to encapsulate things to simplify other pages or when you need to use the same markup in several pages.
--------------------------------------------------------------
Q2)web.config file main two advantages are :-
(1) web.config file cannot be viewed directly in a browser
(2) If the web.config file is changed, you don’t need to re-compile your ASP.NET application

Ans)
Select from following answers:
False
True
Both
Both the above statements are correct.
------------------------------------------------------