ASP.NET interview questions and answers

Which is the parent class of the Web server control? The System.Web.Ul.Control class is the parent class for all Web server controls. In which event are the controls fully loaded? Page load event guarantees that all controls are fully loaded. Controls are also accessed in Page_Init events but you will see that view state is … Continue reading ASP.NET interview questions and answers

Download/Upload files using FTP in C#

        What is FTP?  FTP(File transfer protocol)  is a client-server protocol that relies on two communications channels between client and server: a command channel for controlling the conversation and a data channel for transmitting file content. Clients initiate conversations with servers by requesting to download a file. Using FTP, a client can … Continue reading Download/Upload files using FTP in C#

Swap two variable without using the third variable

using System; namespace Swap { class Program { private static void Main(string[] args) { int a = 1000; int b = 999; Console.WriteLine("Before Swap"); Console.WriteLine("Value of A :{0} ", a); Console.WriteLine("Value of B :{0} ", b); a = a + b; b = a - b; a = a - b; Console.WriteLine("After Swap"); Console.WriteLine("Value of … Continue reading Swap two variable without using the third variable

Solid Principles of OOP

Object oriented programming has 5 basic rules that we called solid rules where s stands for Single Responsibility Principle,o stand for Open Close principle,l stand for Liskov Substitution Principle,I stand for Interface Segregation Principle and the last but not lease is  Dependency Inversion Principle. If you want to use object oriented design in your application … Continue reading Solid Principles of OOP

Singleton thread-safe class in c#

Introduction The singleton pattern is one of the best-known patterns in software engineering. Essentially, a singleton is a class which only allows a single instance of itself to be created, and usually gives simple access to that instance. Most commonly, singletons don't allow any parameters to be specified when creating the instance - as otherwise, … Continue reading Singleton thread-safe class in c#

Handle CreatedDate,ModifiedDate,CreatedBy and ModifiedBy in Entity Framework

What is created date and Modified date and when we use this? Keeping CreatedDate, ModifiedDate,  CreatedBy, and ModifiedBy or auditing columns in the database tables is part of good practices for database design. these columns help in many scenarios like select all the record by created date,Modified date. If you have any transaction table like … Continue reading Handle CreatedDate,ModifiedDate,CreatedBy and ModifiedBy in Entity Framework

Dot Net Interview questions for Experience

What is connection pooling? When should we use connection pooling? What is strong Dll? What is bucketing in the database? Do we need a certificate in client machine for HTTPS? What is two-factor authentication? Can we use singleton in reservation system? What is ref keyword in C#?  Can we determine when an object goes out … Continue reading Dot Net Interview questions for Experience