ASP.NET Interview Questions and Answers (1544) - Page 19

Whether azure supports all OS?

No it supports Windows 7, Vista, Windows 2008 server.
Whether inline, embedded and external style sheets are same?

No, they are different.

External Style Sheet :
An external style sheet is a seperate style sheet file used by many pages.


Internal Style Sheet :
An internal style sheet used specifically for a single page within the page


Inline Styles :
This can be achieved by the style property of each control.
What is the COM available to access the internet explorer in winForm?

Microsoft Internet Controls from the COM components
What is the difference between in-proc and out-of-proc?

An inproc is one which runs in the same process area as that of the client giving tha advantage of speed but the disadvantage of stability becoz if it crashes it takes the client application also with it.Outproc is one which works outside the clients memory thus giving stability to the client, but we have to compromise a bit on speed.
What is a PostBack?

The process in which a Web page sends data back to the same page on the server.
Name the validation control available in asp.net?.

RequiredField, RangeValidator,RegularExpression,Custom validator,compare Validator
What are the various ways of securing a web site that could prevent from hacking etc .. ?

1) Authentication/Authorization
2) Encryption/Decryption
3) Maintaining web servers outside the corporate firewall. etc.,
What is validationsummary server control?where it is used?.

The ValidationSummary control allows you to summarize the error messages from all validation controls on a Web page in a single location. The summary can be displayed as a list, a bulleted list, or a single paragraph, based on the value of the DisplayMode property. The error message displayed in the ValidationSummary control for each validation control on the page is specified by the ErrorMessage property of each validation control. If the ErrorMessage property of the validation control is not set, no error message is displayed in the ValidationSummary control for that validation control. You can also specify a custom title in the heading section of the ValidationSummary control by setting the HeaderText property.
You can control whether the ValidationSummary control is displayed or hidden by setting the ShowSummary property. The summary can also be displayed in a message box by setting the ShowMessageBox property to true.
What is web.config file ?

Web.config file is the configuration file for the Asp.net web application. There is one web.config file for one asp.net application which configures
the particular application. Web.config file is written in XML with specific tags having specific meanings.It includes data which includes
connections,Session States,Error Handling,Security etc.
When do you set "<IDENTITY impersonate="true" />“?

Identity is a webconfig declaration under System.web, which helps to control the application Identity of the web applicaton. Which can be at any level (Machine, Site, application, subdirectory, or page), attribute impersonate with "true" as value specifies that client impersonation is used.
How do you register JavaScript for webcontrols?

You can register javascript for controls using <CONTROL -name>.Attribtues.Add(scriptname,scripttext) method.
Which two properties are on every validation control?

We have two common properties for every validation controls
1. Control to Validate,
2. Error Message.
What is different b/w webconfig.xml & Machineconfig.xml

Web.config & machine.config both are configuration files.Web.config contains settings specific to an application where as machine.config contains settings to a computer. The Configuration system first searches settings in machine.config file & then looks in application configuration files, Web.config, can appear in multiple directories on an ASP.NET Web application server. Each Web.config file applies configuration settings to its own directory and all child directories below it. There is only Machine.config file on a web server.
What are different types of directives in .NET?

@Page: Defines page-specific attributes used by the ASP.NET page parser and compiler. Can be included only in .aspx files <%@ Page AspCompat="TRUE" language="C#" %>
@Control:Defines control-specific attributes used by the ASP.NET page parser and compiler. Can be included only in .ascx files. <%@ Control Language="VB" EnableViewState="false" %>
@Import: Explicitly imports a namespace into a page or user control. The Import directive cannot have more than one namespace attribute. To import multiple namespaces, use multiple @Import directives. <% @ Import Namespace="System.web" %>
@Implements: Indicates that the current page or user control implements the specified .NET framework interface.<%@ Implements Interface="System.Web.UI.IPostBackEventHandler" %>
@Register: Associates aliases with namespaces and class names for concise notation in custom server control syntax.<%@ Register Tagprefix="Acme" Tagname="AdRotator" Src="AdRotator.ascx" %>
@Assembly: Links an assembly to the current page during compilation, making all the assembly's classes and interfaces available for use on the page. <%@ Assembly Name="MyAssembly" %><%@ Assembly Src="MySource.vb" %>
@OutputCache: Declaratively controls the output caching policies of an ASP.NET page or a user control contained in a page<%@ OutputCache Duration="#ofseconds" Location="Any | Client | Downstream | Server | None" Shared="True | False" VaryByControl="controlname" VaryByCustom="browser | customstring" VaryByHeader="headers" VaryByParam="parametername" %>
@Reference: Declaratively indicates that another user control or page source file should be dynamically compiled and linked against the page in which this directive is declared.
What is MVC Pattern? How it is involved in ASP.NET?

MVC means Model View Controller. Microsoft has implemented MVC pattern in ASP.NET for the easy building of web applications. The seperation of UI part and codebehind part is based upon the MVC.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories