top of page

ASP.Net Interview Questions: In this section, we will see the various interview questions related to the web development in Microsoft Technologies using ASP.Net. We will see the questions relatedto the ASP.Net lifecycle, the componenets used in life cycle, state management technoques, master pge and content page links, Web services and various componenets, etc.

ASP.Net Interview Questions

 

1. What is ASP?

2. What is ASP.NET?

3. What is the basic difference between ASP and ASP.NET?

4. In which event are the controls fully loaded?

5. How can we identify that the Page is Post Back?

6. What is the lifespan for items stored in ViewState?

7. How information about the user's locale can be accessed?

8. What is the difference between SQL notification and SQL invalidation?

9. Which is the parent class of the Web server control?

10. Can you set which type of comparison you want to perform by the CompareValidator control?

11. What is the behavior of a Web browser when it receives an invalid element?

12. What are the advantages of the code-behind feature?

13. How do you sign out from forms authentication?

14. What is AutoPostBack?

15. What is the function of the ViewState property?

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

17. Define a multilingual Web site.

18. What is an ASP.NET Web Form?

19. What is the difference between a default skin and a named skin?

20. What is IIS? Why is it used?

21. What is Query String? What are its advantages and limitations?

22. What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?

23. How can you display all validation messages in one control?

24. Which two new properties are added in ASP.NET 4.0 Page class?

25. What is tracing? Where is it used?

26. What is the difference between authentication and authorization?

27. How can you register a custom server control to a Web page?

28. Which ASP.NET objects encapsulate the state of the client and the browser?

29. Differentiate globalization and localization.

30. What is ViewState?

31. Which method is used to force all the validation controls to run?

32. Which method has been introduced in ASP.NET 4.0 to redirect a page permanently?

33. How can you send an email message from an ASP.NET Web page?

34. What is the difference between the Response.Write() and Response.Output.Write() methods?

35. What does the Orientation property do in a Menu control?

36. Differentiate between client-side and server-side validations in Web pages.

37. How does a content page differ from a master page?

38. Suppose you want an ASP.NET function (client side) executed on the MouseOver event of a button. Where do you add an event handler?

39. What is the default timeout for a Cookie?

40. What are HTTP handlers in ASP.NET?

41. What are the events that happen when a client requests an ASP.NET page from IIS server?

42. Explain file-based dependency and key-based dependency.

43. How can you implement the postback property of an ASP.NET control?

44. Explain how Cookies work. Give an example of Cookie abuse.

45. Explain login controls.

46. What is the use of PlaceHolder control? Can we see it at runtime?

47. What setting must be added in the configuration file to deny a particular user from accessing the secured resources?

48. What are the event handlers that can be included in the Global.asax file?

49. What is the difference between page-level caching and fragment caching?

50. Make a list of all templates of the Repeater control.

51. Describe the complete lifecycle of a Web page.

52. How can you assign page specific attributes in an ASP.NET application?

53. Which method is used to post a Web page to another Web page?

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

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

56. What does the .WebPart file do?

57. How can you enable impersonation in the web.config file?

58. How can you identify that the page is PostBack?

59. In which database is the information, such as membership, role management, profile, and Web parts personalization, stored?

60. What is State Management? How many ways are there to maintain a state in .NET?

61. What do you understand by aggregate dependency?

62. How can you ensure that no one has tampered with ViewState in a Web page?

63. What is the difference between adding items into cache through the Add() method and through the Insert() method?

64. Explain the cookie less session and its working.

65. What is a round trip?

66. What are the major built-in objects in ASP.NET?

67. Where should the data validations be performed-at the client side or at the server side and why?

68. Why do we need nested master pages in a Web site?

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

70. What is the appSettings Section in the web.config file?

71. What type of code, client-side or server-side, is found in a code-behind file of a Web page?

72. To which class a Web form belongs to in the .NET Framework class hierarchy?

73. What does the "EnableViewState" property do? Why do we want it On or Off?

74. Which event determines that all the controls are completely loaded into memory?

75. What is the function of the CustomValidator control?

76. What is Role-based security?

77. Which data type does the RangeValidator control support?

78. What are the HTML server controls in ASP.NET?

79. Why a SiteMapPath control is referred to as breadcrumb or eyebrow navigation control?

80. Where is the ViewState information stored?

81. Which namespaces are necessary to create a localized application?

82. What is the difference between an HtmlInputCheckBox control and an HtmlInputRadioButton control?

83. What is the difference between HTML and Web server controls?

84. Explain the AdRotator Control.

85. What do you understand by the culture?

86. What is the difference between absolute expiration and sliding-time expiration?

87. What is the code-behind feature in ASP.NET?

88. How can you check if all the validation controls on a Web page are valid and proper?

89. Explain the validation controls. How many validation controls in ASP.NET 4.0?

90. What is difference between a Label control and a Literal control?

91. How many types of Cookies are available in ASP.NET?

92. What is the use of the Global.asax file?

93. What are the Culture and UICulture values?

94. What is the difference between ASP session and ASP.NET session?

95. Which control will you use to ensure that the values in two different controls match?

96. What is the difference between a page theme and a global theme?

97. What do you mean by a neutral culture?

98. What is the use of the <sessionState> tag in the web.config file?

99. Can you post and access view state in another application?

100. Which method do you use to kill explicitly a users session?

101. Which class is inherited when an ASP.NET server control is added to a Web form?

102. What events are fired when a page loads?

103. Write three common properties of all validation controls.

104. What are navigation controls? How many navigation controls are there in ASP.NET 4.0?

105. What happens if an ASP.NET server control with event-handling routines is missing from its definition?

106. What are server-side comments?

107. How can we provide the WebParts control functionality to a server control?

108. How do you prevent a validation control from validating data at the client end?

109. What is cross-page posting in ASP.NET?

110. Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared Web hosting platform?

111. Explain the Application and Session objects in ASP.NET.

112. How will you differentiate a submaster page from a top-level master page?

113. What are Web server controls in ASP.NET?

114. What is the difference between a HyperLink control and a LinkButton control?

115. What are the various ways of authentication techniques in ASP.NET?

116. What are the different ways to send data across pages in ASP.NET?

117. What does the WebpartListUserControlPath property of a DeclarativeCatalogPart control do?

118. What do you mean by the Web Part controls in ASP.NET?

119. What type of the CatalogPart control enables users to restore the Web Parts that have been removed earlier by the user?

120. What is the use of web.config? What is the difference between machine.config and web.config?

121. Explain the concept of states in ASP.NET.

122. Can we validate a DropDownList by RequiredFieldValidator?

123. List the features of the Chart control.

bottom of page