.Net Interview Questions and Answers

Basic Asp.Net C# interview Questions for freshers

Q. Where viewstate is stored after the page postback done?
A. ViewState is stored in a hidden field on the page at client side. ViewState is transported to the client and back to the server, and is not stored on the server or any other external source.

Q. How long the items in ViewState exists on Client-Side?
A. ViewState in asp.net web application exist for the current page life time till page alive on the client-side browser.

c#
Asp.Net interview questions and answers pdf C# Languages using to develop web forms in Visual Studio business requirements
Online Courses

WebForms Development | MVC Core Interview Questions and Answers

Q. Explain the types of comments in C# asp.net?
A. Here are the types of comments in C#
Single Line Comment Eg : // (will use this wherever comment the line)
Multiline Comments Eg: /* */ (for multi line starting and ending lines will use this)
XML Comments Eg : ///


Q. Explain sealed class in C# asp.net web applications?
A. Sealed class is used to prevent the class from being inherited from other classes. So “sealed” modifier also can be used with methods to avoid the methods to override in the child classes.

top asp.net architect interview questions and answers for cSharptop asp.net core interview Questions and Answers

beginners C# with asp.net interview questions and answers

Q. Explain the differences between Array and ArrayList in C#?
A. Array stores the values or elements of same data type but arraylist stores values of different datatypes.
Arrays will use the fixed length but arraylist does not uses fixed length like array.

Q. Why to use “using” in C# asp.net?
A. “Using” statement calls – “dispose” method internally, whenever any exception occurred in any method call and in “Using” statement objects are read only and cannot be re-assignable or modifiable.


Harisystems is optimized for learning, testing and training. courses are designed to be simplified to improve reading and basic understanding for beginners to expert level. Tutorials and examples are constantly reviewed to avoid errors, however we cannot warrant full correctness of all content. if any found need to correct write us at info@harisystems.com. we Harisystems is not responsible for any with this tutorials, While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2007-2020 by Harisystems. All Rights Reserved.
Copyright © Harisystems 2020