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
How can we make sure that Web API returns JSON data only?
What is query string? What are its advantages and limitations?
What is application session?
How can we identify that the Page is Post Back?
Which method is used to force all the validation controls to run?
How to reduce the width of textbox in editcommandcolumn of datagrid?
What is web api and why to use it?
Is it possible to change the index of primary key on table?
Describe the Server Control Events of ASP.NET?
What are Authentication and Authorization?
Is asp.net core faster?
a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.
What is asp.net version?
What is the behavior of a Web browser when it receives an invalid element?
What are the namespaces used in asp.net mvc? : asp.net mvc