Showing posts with label Data list. Show all posts
Showing posts with label Data list. Show all posts

Saturday, December 10, 2011

.NET/ASP.NET interview questions: - While choosing design, when to consider Data grid, data list, or repeater?

This is one of quiet often asked .NET/ASP.NET interview questions so prepare accordingly to answer it to the interviewer.

Many of the developers make a blind choice of choosing data grid directly, but that is not the right way.

Data grid provides ability to allow the end-user to sort, page, and edit its data. However, it comes at a cost of speed. Second, the display format is simple that is in row and columns. Real life scenarios can be more demanding that

With its templates, the Data List provides more control over the look and feel of the displayed data than the Data Grid. It offers better performance than data grid

Repeater control allows for complete and total control. With the Repeater, the only HTML emitted are the values of the data binding statements in the templates along with the HTML markup specified in the templates—no "extra" HTML is emitted, as with the Data Grid and Data List. By requiring the developer to specify the complete generated HTML markup, the Repeater often requires the longest development time. However, repeater does not provide editing features like data grid so everything has to be coded by programmer. However, the Repeater does boast the best performance of the three data Web controls. Repeater is fastest followed by Datalist and finally data grid.

See video on ASP.NET 4.0 web.config transformation as follows: -



Get more fundamentals stuffs on .NET/ASP.NET interview questions

Regards,
More from author’s blogs on .NET/ASP.NET interview questions for interview references

Thursday, July 28, 2011

C# and .NET interview questions: - What is the difference between Grid view, Data list, and repeater?

Following is one of the basic but most asked .NET interview questions: -

Grid view and data grid by default display all the data in tabular format i.e.
in table and rows. Developer has no control to change the table data display of
datagrid.

Data list also displays data in a table but gives some flexibility in terms of
displaying data row wise and column wise using the repeat direction property.

Repeater control is highly customizable. It does not display data in table by
default. So you can customize from scratch the way you want to display data.

Also view an interesting video on regular expressions as follows: -





Get our more C# and Dotnet interview questions for preparation.

Regards,

Also Visit for more author’s blog on Most asked c# interview questions