Asp .Net Interview Question and Answer | Web Application | Session 07

61. Name two properties common in every validation control?
Ans: ControlToValidate property and Text property.

62. 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?
Ans: You must set the DataSource property and call the DataBind method.

63. How can you provide an alternating color scheme in a Repeater control?
Ans: Use the AlternatingItemTemplate.

64. Which template must you provide, in order to display data in a Repeater control?
Ans: ItemTemplate

65. Can you edit data in the Repeater control?
Ans: No, it just reads the information from its data source.

56. Which method do you invoke on the DataAdapter control to load your generated dataset with data?
Ans: The .Fill() method. 

67. Describe the difference between inline and code behind.
Ans: Inline code written along side the html in a page.
Code-behind is code written in a separate file and referenced by the .aspx page.

68. What’s a bubbled event?
Ans: When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents.

69. What is the role of global.asax ?
Ans: Asp.Net uses the Global.asax to establishany global object that our web application uses.

70. Can the action attribute of a server-side <form> tag be set to a value and if not how can you possibly pass data from a form page to a subsequent page?
Ans: No, You have to use Server.Transfer to pass the data to another page.



Previous Next


:: Click the links below for similar type Questions and answers ::

0 comments:

Post a Comment

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes