June 4, 2019

Srikaanth

Facebook ASP.NET Interview Questions Answers

Facebook Most Frequently Asked Latest ASP.NET Interview Questions Answers

How Can You Provide An Alternating Color Scheme In A Repeater Control?

Use the AlternatingItemTemplate.

What Property Must You Set, And What Method Must You Call In Your Code, In Order To Bind The Data From A Data Source To The Repeater Control?

You must set the DataSource property and call the DataBind method.

What Base Class Do All Web Forms Inherit From?

The Page class.

Name Two Properties Common In Every Validation Control?

ControlToValidate property and,
Text property.

Which Property On A Combo Box Do You Set With A Column Name, Prior To Setting The Datasource, To Display Data In The Combo Box?

DataTextField property.

Which Control Would You Use If You Needed To Make Sure The Values In Two Different Controls Matched?

CompareValidator control.

How Many Classes Can A Single .net Dll Contain?

It can contain many classes.

What Is The Transport Protocol You Use To Call A Web Service?

SOAP(Simple Object Access Protocol) is the preferred protocol.

What Does Wsdl Stand For?

Web Services Description Language.

Where On The Internet Would You Look For Web Services?

http://www.uddi.org
Facebook Most Frequently Asked Latest ASP.NET Interview Questions Answers
Facebook Most Frequently Asked Latest ASP.NET Interview Questions Answers

To Test A Web Service You Must Create A Windows Application Or Web Application To Consume This Service?

False,

The web service comes with a test page and it provides HTTP-GET method to test.

Can You Give An Example Of When It Would Be Appropriate To Use A Web Service As Opposed To A Non-serviced .net Component?

Webservice is one of main component in Service Oriented Architecture. You could use webservices when your clients and servers are running on different networks and also different platforms. This provides a loosely coupled system. And also if the client is behind the firewall it would be easy to use webserivce since it runs on port 80 (by default) instead of having some thing else in SOA apps.

How Would You Get Asp.net Running In Apache Web Servers - Why Would You Even Do This?

You need to create a CLRHost, which hosts the CLR (ASP.NET) on top of Apache. Since Apache is #1 webserver used by many companies, this would allow more number of web site owners to take advantage of ASP.NET and its richness.

In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?

This is the order of Page events

Page_Init
Page_LoadViewState
Page_LoadPostData
Page_Load
Page_RaisePostDataChanged
Page_RaisePostBackEvent
Page_PreRender
Page_SaveViewState
Page_Render
Page_Dispose
Page_Error(this is caused whenever there is an exception at the page level).
Out of all the Page_Load is the one where your code gets loaded and your magic should be written. page_init occurs only once, i.e. when the page is initially created.

As a developer you need to know these, becuase your development activity is coding for these only.

What Method Do You Use To Explicitly Kill A User's Session?

Session.Abandon()

How Do You Turn Off Cookies For One Page In Your Site?

Actually I never did this. But there should be a way to do this. May be need to write your own code to do this using Response. Cookies collection and HTTPCookie class and also SessionStateMode. Or there may be some simple way to do it. Need to do further research on this.

Which Two Properties Are On Every Validation Control?

The common properties are

IsValid (bool)
ControlToValidate (string)
ErrorMessage (string)
ValidationDisplay (Display)
Text (string)
The common method is:Validate().

What Tags Do You Need To Add Within The Asp:datagrid Tags To Bind Columns Manually?

You need to set AutoGenerateColumns Property to false.

What Is Data Binding?

Data binding is a way used to connect values from a collection of data (e.g. DataSet) to the controls on a web form. The values from the dataset are automatically displayed in the controls without having to write separate code to display them.

Describe Paging In Asp.net?

The DataGrid control in ASP.NET enables easy paging of the data. The AllowPaging property of the DataGrid can be set to True to perform paging, ASP.NET automatically performs paging and provides the hyperlinks to the other pages in different styles, based on the property that has been set for PagerStyle.Mode.

What Is The Difference Between Server.transfer And Response.redirect?

Response.Redirect: This tells the browser that the requested page can be found at a new location. The browser then initiates another request to the new page loading its contents in the browser. This results in two requests by the browser.

Server.Transfer: It transfers execution from the first page to the second page on the server. As far as the browser client is concerned, it made one request and the initial page is the one responding with content. The benefit of this approach is one less round trip to the server from the client browser. Also, any posted form variables and query string parameters are available to the second page as well.

What Is Rdbms?

Relational Data Base Management Systems (RDBMS) are database management systems that maintain data records and indices in tables. Relationships may be created and maintained across and among the data and tables. In a relational database, relationships between data items are expressed by means of tables. Inter dependencies among these tables are expressed by data values rather than by pointers. This allows a high degree of data independence. An RDBMS has the capability to recombine the data items from different files, providing powerful tools for data usage.

What Are The Properties Of The Relational Tables?

Relational tables have six properties

Values are atomic.
Column values are of the same kind.
Each row is unique.
The sequence of columns is insignificant.
The sequence of rows is insignificant.
Each column must have a unique name.

What Is Normalization?

Database normalization is a data design and organization process applied to data structures based on rules that help building rlational databases. In relational database design, the process of organizing data to minimize redundancy is called normalization. Normalization usually involves dividing a database into two or more tables and defining relationships between the tables. The objective is to isolate data so that additions, deletions, and modifications of a field can be made in just one table and then propagated through the rest of the database via the define relationships.

What Is De-normalization?

De‐normalization is the process of attempting to optimize the performance of a database by adding redundant data. It is sometimes necessary because current DBMS's implement the relational model poorly. A true relational DBMS would allow for a fully normalized database at the logical level, while providing physical storage of data that is tuned for high performance. De‐normalization is a technique to move from higher to lower normal forms of database modeling in order to speed up database access.

What Are Different Normalization Forms?

1NF:Eliminate Repeating Groups

Make a separate table for each set of related attributes,and give each table a primary key.Each field contains at most one value from its attribute domain.

2NF:Eliminate Redundant Data

If an attribute depends on only part of a multi‐valued key, remove it to a separate table.

3NF:Eliminate Columns Not Dependent On Key

If attributes do not contribute to a description of the key, remove them to a separate table. All attributes must be directly dependent on the primary key.

BCNF:Boyce‐Codd Normal Form

If there are non‐trivial dependencies between candidate key attributes,separate them out into distinct tables.

4NF:Isolate Independent Multiple Relationships

No table may contain two or more 1:n or n:m relationships that are not directly related.

5NF:Isolate Semantically Related Multiple Relationships

There may be practical constrains on information that justify separating logically related many‐to‐many relationships.

ONF:Optimal Normal Form

A model limited to only simple(elemental) facts,as expressed in Object Role Model notation.

Subscribe to get more Posts :