What are different templates available in Repeater,DataList and Datagrid ?
Answer Posted / 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 View All Answers
Where session variables are stored?
What is owin authentication?
Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
Why does my asp.net file have multiple tag with runat=server?
What is different in .net 1.1 and .net 2.0?
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?
Are cookies stored on server or client?
What are the session variables?
What is the difference between visual basic and asp.net?
Can I have a unique key as foreign key?
What is active web pages?
Define reflection in .net?
Describe the .net base class library.
Define page output caching?
How to find last error which occurred in Asp.net ?