Asp.net 4.0 interview questions and answers

Q. What is Routing in Asp.Net 4.0 ?

Ans. Routing is a feature in ASP.NET 4.0 that enables you to use URLs to map specific resources. These URLs can then become more descriptive and user friendly like http://server/webapp/Customers/View/ID.
In ASP.NET 4.0 all the necessary components to use ASP.NET Routing are inbuilt. These include theIRouteHandler implementation (PageRouteHandler class) that serves up the right IHttpHandler to service the request and a couple of expression builders to help capture parameters from routed requests and also generate route URLs.

Q. Whats Application Warm-Up Module?

Ans. We can set-up a Warm-Up module for warming up your applications before they serve their first request.Instead of writing custom code, you specify the URLs of resources to execute before the Web application accepts requests from the network. This warm-up occurs during startup of the IIS service (if you configured the IIS application pool as AlwaysRunning) and when an IIS worker process recycles. During recycle, the old IIS worker process continues to execute requests until the newly spawned worker process is fully warmed up, so that applications experience no interruptions or other issues due to unprimed caches.

Q. When would you use the ViewStateMode property of a control.

Ans. ViewStateMode is newly introduced in .net 4.0 and can accept Enabled, Disabled and Inherit values. It is mainly used when you have to disable the viewstate of a control. By default it is set to Inherit. Also, If the EnableViewState property is set to be disabled, setting any values for ViewStateMode property will make no difference.

Q What are the SEO Enhancements in .net 4.0

Ans. ASP.NET 4.0 has make it easier to set the Keywords and Description meta tags on a page. The page class in ASP.NET 4.0 now has two new properties, namely, Keywords and Description. These can be set either in markup code or from the code behind so that you can generate the meta tags dynamically.

Q. How do you Monitor the Performance of your asp.net web application ?

Ans. ASP.NET 4.0 provides support for monitoring the performance of individual applications inside a single worker process. This feature provides a more granular view of the resources being consumed by your application. You use the following in your webconfig.

See more questions at : Interview questions ASP.Net 4.0, Interview questions ASP.Net 4

Related Posts