Is it possible to change the index of primary key on table?

No. In the context of .NET interview questions, if you’re asked whether it’s possible to change the index of a primary key on a table, the correct answer would depend on the database management system (DBMS) being used. In most relational database management systems like Microsoft SQL Server, MySQL, or PostgreSQL, altering the index of … Read more

Explain the boxing and unboxing concept in .Net?

Boxing: Boxing is a process of converting value type into reference type. Unboxing: Unboxing is a process of converting reference type to value type. In .NET, boxing and unboxing are concepts related to the conversion between value types and reference types. Boxing: Boxing is the process of converting a value type to an object type … Read more

Can you set the session out time manually?

Yes. Session out time can be set manually in web.config. In a .NET interview, if you’re asked whether you can set the session timeout manually, the correct answer is yes, you can set the session timeout manually in ASP.NET. In ASP.NET, session timeout can be configured in the web.config file using the <sessionState> element. The … Read more

What are the disadvantages of using session?

The disadvantages of using session are: Performance overhead occurs in case of large number of users, because session data is stored in server memory. Overhead involved in serializing and De-Serializing session Data. Because In case of StateServer and SQLServer session mode we need to serialize the object before store. In a .NET interview, when asked … Read more

What are the advantages of using session?

The advantages of using session are: A session stores user states and data to all over the application. It is very easy to implement and we can store any kind of object. It can store every user data separately. Session is secure and transparent from user because session object is stored on the server. In … Read more