DEEPinCONCEPTS•com
beta
The inner truth
Home
About
Contact
Sitemap
Navigation Title
Home
OOPS
ASP.NET
.NET
Dotnet Interview Questions
Concepts
OOPS Interview Questions
.NET Interview Questions
ASP.NET Interview Questions
C# Interview Questions
ASP.NET Interview Questions
Latest ASP.NET Interview Questions
.......................................
What is Master Page?
You can create consistent layout for multiple pages by creating a master page and individual content pages. The master page defines the layout, navigation, and controls that you want to share among the pages in your Web application. The master page can also contain code that applies to all pages. You can then define content pages that reference the master page and merge their content with the master page at run time. (Source: MSDN)
What is Themes and use of this?
A theme is a collection of control property settings (referred to as skins), style sheets, and graphics that you can apply as a unit to a page or Web site. Themes enable you to define styling that can be applied to a set of pages, and can be changed as a group. You can now use ASP.NET themes to style Web pages. (Source: MSDN)
What is Control State and how do this is different from View State?
In ASP.NET version 2.0 you can disable view state without breaking control behavior. Controls that require state persistence across postbacks store their own data in a private store, which is referred to as control state. Control state does not store the entire content of the control. For example, the GridView control does not store the contents of all rows in control state. Instead, control state is used only to store the minimal information that is required by the control to function across postbacks, which reduces the size of the page. (Source: MSDN)
Please specify the use of directives for ASP.NET Web Pages?
Directives specify settings that are used by the page and user-control compilers when the compilers process ASP.NET Web Forms pages (.aspx files) and user control (.ascx) files.
Name few Page directive?
@Page directive, @Import, @OutputCache, @Implements, @Register
What is use of Header property of Page.
The Page object exposes a Header property that gives you an easy way to manipulate linked style sheets, the style element, metadata elements, and the page title.
How you can do exception handling in ASP.NET?
In ASP.NET this can be done via simply try catch and finally block like to do with in other application. But in ASP.NET we have another method also Error events. We can use Error events also. In Error events can be handled at the Global, Application, or Page levels using Server object's GetLastError and ClearError methods.
Can You use Server.Transfer to transfer to an HTML page.
No, this can be only used to transfer to an .aspx page.
Can an ASPX file contain more than one form marked runat="server"?
No, this is not possible. Because ASP.NET have this limitation they can not have more then one page marked as runat="servar"
How you preserve the data in ASP.NET?
We can use ApplicationState, SessionState or ViewState.
What is fragment caching?
Fragment caching is enabled for ascx controls.
What is difference between Button HTML Control and Button Server Control?
When HTML Button is clicked, the event is handled on the client site but if the Server Button Control is clicked by default the event is handled on the Server Side.