Set - 3

Question 31 :

Where would you use an iHTTPModule, and what are the limitations of anyapproach you might take in implementing one?

Answer :

One of ASP.NET most useful features is the extensibility of the HTTP pipeline, the path that data takes between client and server. You can use them to extend your ASP.NET applications by adding pre- and post-processing to each HTTP request coming into your application. For example, if you wanted custom authentication facilities for your application, the best technique would be to intercept the request when it comes in and process the request in a custom HTTP module.

Question 32 :

In what order do the events of an ASPX page execute. As a developer is it important to understand these events?

Answer :

Every Page object (which your .aspx page is) has nine events, most of which you will not have to worry about in your day to day dealings with ASP.NET. The three that you will deal with the most are: Page_Init, Page_Load, Page_PreRender.

Question 33 :

Which method do you invoke on the DataAdapter control to load your generated dataset with data?

Answer :

If my DataAdapter is sqlDataAdapter and my DataSet is dsUsers then it is called this way:

Question 34 :

Which template must you provide, in order to display data in a Repeater control?

Answer :


Question 35 :

How can you provide an alternating color scheme in a Repeater control?

Answer :

AlternatingItemTemplate Like the ItemTemplate element, but rendered for every other row (alternating items) in the Repeater control. You can specify a different appearance for the AlternatingItemTemplate element by setting its style properties.