What is the difference between User Controls and Master Pages
Answer Posted / nazrul
user control
1)it extension is .ascx.
2)it can be more than one on single web page.
3)it doesn't contain Contentplaceholder.
4)it doesn't work like a fixed template.it can be
display in diffrent manner in diffrent page.
MasterPage:
1) it extension is .Master.
2)it used like a template.
3)it contain ContentPlaceHolder.
| Is This Answer Correct ? | 51 Yes | 3 No |
Post New Answer View All Answers
What are assemblies and namespaces and explain the difference between them ?
What is a server cookie?
Where is session data stored in asp net?
What is the difference between cookie and session?
How do we implement bundling in MVC?
What is the difference between ASP.NET Webforms and ASP.NET MVC?
What are the elements of a website?
What are the file extensions for razor views?
Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?
Explain how is a property designated as read-only?
Define secured sockets layer.
What is difference between web api and web services?
What is marshalling ? Is it a part of asp.net ?
Explain the difference between overriding and overloading?
Explain about the Class view window?