What are different templates available in Repeater,DataList and Datagrid ?



What are different templates available in Repeater,DataList and Datagrid ?..

Answer / sushil kumar

Templates enable one to apply complicated formatting to each of the items displayed by a control.Repeater control supports five types of templates.HeaderTemplate controls how the header of the repeater control is formatted.ItemTemplate controls the formatting of each item displayed.AlternatingItemTemplate controls how alternate items are formatted and the SeparatorTemplate displays a separator between each item displyed.FooterTemplate is used for controlling how the footer of the repeater control is formatted.The DataList and Datagrid supports two templates in addition to the above five.SelectedItem Template controls how a selected item is formatted and EditItemTemplate controls how an item selected for editing is formatted.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What are the different types of cookies in asp.net?

0 Answers  


How to authenticate users using web.config ?

1 Answers   Patni,


what is pagination in asp.net ?

1 Answers   Netsweeper,


In a Repeater control how one can provide an alternating color scheme ?

0 Answers   Siebel,


How will you maintain versioning in asp.net 2.0?

0 Answers   MCN Solutions,


Difference between Response.redirect vs server.transfer?

0 Answers  


What is the difference between the response.write() and response.output.write() methods?

0 Answers  


Less than one page, how many windows will you be able to maintain?

0 Answers   Atos Origin,


Explain < @OutputCache% > and the usage of VaryByParam, VaryByHeader ?

1 Answers  


How can we access static variable?

0 Answers  


To which class you load XML or Related Data

1 Answers  


If you have an application with multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers by using round-robbin load balancing. Explain which is the best approach to maintain login-in state for the users?

0 Answers   Siebel,


Categories