Ticker

6/recent/ticker-posts

Top25 ASP.NET Interview Questions — FAQ | Crack the Interview Easily

I hope these questions and answers will help you to crack your ASP.NET interview. These interview questions have been taken from our newly released eBook ASP.NET/AJAX Interview Questions & Answers. This book contains more than 110+ ASP.NET/AJAX interview questions.
This eBook has been written to make you confident in WCF with a solid foundation. Also, this will help you to turn your programming into your profession. It's would be equally helpful in your real projects or to crack your ASP.NET Interview.



1. What is ASP.Net?

It is a framework developed with the aid of Microsoft on which we will develop new generation web sites the usage of internet paperwork(aspx), MVC, HTML, Javascript, CSS etc. Its successor of Microsoft Active Server Pages(ASP). Currently there's ASP.NET 4.0that is used to broaden web sites. There are various web page extensions furnished via Microsoft that are being used for net web site development. Eg: aspx, asmx, ascx, ashx, cs, vb, html, XML etc.

2. What’s the use of Response.Output.Write()?

We can write formatted output the usage of Response.Output.Write().

3. What is caching?

Caching is a method used to boom performance by using keeping frequently accessed records or files in memory. The request for a cached file/statistics might be accessed from cache as a substitute of actual region of that document.

4. What is Cross Page Posting?

When we click put up button on an internet web page, the page put up the records to the equal web page. The technique wherein we put up the information to one-of-a-kind pages is known as Cross Page posting. This may be performed with the aid of placing POSTBACKURL property of the button that reasons the postback. Findcontrol approach of PreviousPage may be used to get the posted values on the page to which the web page has been posted.

5. What is RedirectPermanent in ASP.Net?

RedirectPermanent Performs a everlasting redirection from the asked URL to the desired URL. Once the redirection is done, it also returns 301 Moved Permanently responses.
Free Microsoft Dot Net Tutorials for Beginners

6. What are the advantages of the code-behind function?

The code-behind feature of ASP.NET offers more than a few of blessings:
Makes code clean to understand and debug by separating application good judgment from HTML tags
Provides the isolation of effort among image designers and software engineers
Removes the issues of browser incompatibility by using offering code documents to exist at the Web server and helping Web pages to be compiled on demand.

7. What is an ASP.NET Web Form?

ASP.NET Web bureaucracy are designed to use controls and functions which are nearly as effective as the ones used with Windows bureaucracy, and so they may be referred to as as Web paperwork. The Web shape makes use of a server-side object model that lets in you to create useful controls, which can be achieved on the server and are rendered as HTML at the consumer. The attribute, runat=”server”, associated with a server manipulate suggests that the Web shape have to be processed on the server.

8. What is IIS? Why is it used?

Internet Information Services (IIS) is created by way of Microsoft to offer Internet-primarily based services to ASP.NET Web packages. It makes your laptop to work as a Web server and offers the functionality to develop and installation Web packages at the server. IIS handles the request and response cycle on the Web server. It also offers the services of SMTP and FrontPage server extensions. The SMTP is used to ship emails and use FrontPage server extensions to get the dynamic capabilities of IIS, along with shape handler.

9. What is Query String? What are its benefits and limitations?

The Query String facilitates in sending the page data to the server.
The Query String has the following advantages:
Every browser works with Query Strings.
It does now not require server resources and so does not exert any kind of burden on the server.
The following are the constraints of Query String:
Information ought to be inside the limit because URL does not help many characters.
Information is really seen to the userwhich results in protection threats.

10. What is the difference among authentication and authorization?

Authentication verifies the identity of a person and authorization is a procedure where you can check whether or now not the identity has get admission to rights to the system. In different words, you may say that authentication is a method of getting some credentials from the users and verify the user’s identity towards those credentials. Authorization is a technique of granting access of precise assets to an authenticated consumer. You have to word that authentication continually takes vicinity earlier than authorization.
Quick Links:
Responsibilities of aGood Dot Net Developer
Dot Net Quiz

11. Differentiate globalization and localization.

The globalization is a technique to discover the specific part of a Web software that is exclusive for one-of-a-kind languages and make separate that element from the core of the Web utility. The localization is a procedure of configuring a Web application to be supported for a particular language or locale.

12. What is a Cookie? Where is it used in ASP.NET?

Cookie is a lightweight executable program, which the server posts to customer machines. Cookies store the identity of a user on the first visit of the Web website online and validate them later on the following visits for his or her authenticity. The values of a cookie can be transferred between the person’s request and the server’s response.

13. What is the default timeout for a Cookie?

The default time period for a Cookie is 30 minutes.

14. How does a content material web page range from a master web page?

content page does not have whole HTML source code; while a master page has whole HTML supply code inside its supply record.

15. Explain how Cookies work. Give an instance of Cookie abuse.

The server tells the browser to place some files in a cookie, and the consumer then sends all the cookies for the domain in every request. An instance of cookie abuse is big cookies affecting the network traffic.

16. What are Custom User Controls in ASP.NET?

The custom person controls are the controls which can be described with the aid of developers. These controls are a combination of custom behavior and predefined behavior. These controls work much like different Web server controls.

17. What do you recognize by using combination dependency?

Aggregate dependency permits a couple of dependencies to be aggregated for content that relies upon on a couple of resource. In such kind of dependency, you need to depend on the sum of all the defined dependencies to eliminate a data item from the cache.

18. How can you dynamically add user controls to a web page?

User controls can be dynamically loaded via including a Web User Control web page inside the application and including the manage on this web page.

19. What type of code, customer-facet or server-side, is determined in a code-behind report of a Web web page?

A code-behind document consists of the server-aspect code, because of this that the code contained in a code-behind file is completed on the server.

20. What is Role-primarily based security?

In the Role-primarily based protectionyou could assign a position to every user and furnish the privilege according to that function. A function is a collection of important that restricts a user’s privileges. Therefore, all the employer and packages use role-primarily based safety model to decide whether or not a consumer has enough privileges to perform a asked mission.

21. What is using PlaceHolder control? Can we see it at runtime?

The PlaceHolder control acts as a container for the ones controls which can be dynamically generated at runtime. We can't see it at runtime as it does not produce any seen output. It used simplest as a container.

22. How can you permit impersonation in the web.Config report?

To allow impersonation inside the net.Confing document, you need to consist of the element in the net.Config file and set the impersonate attribute to real as shown inside the following code snippet:

23. Which approach has been delivered in ASP.NET 4.0 to redirect a page permanently?

The RedirectPermanent() technique introduced in ASP.NET 4.zero to redirect a page permanently. The following code snippet is an instance of the RedirectPermanent() method:
RedirectPermanent(“/path/Aboutus.Aspx”);

24. What is ViewState?

The ViewState is a characteristic used by ASP.NET Web page to shop the fee of a web page and its controls just earlier than posting the page. Once the web page is posted, the first project by means of the page processing is to repair the ViewState to get the values of the controls.

25. Why do you use the App_Code folder in ASP.NET?

The App_Code folder is routinely present in the project. It shops the documentsincluding classes, typed records set, text documents, and reports. If this folder isn't always available within the applicationyou could add this folder. One of the crucial functions of the App_Code folder is that handiest one dll is created for the whole folder, regardless of how many documents it includes.

Post a Comment

0 Comments