Can we add code files of different languages in App_Code folder?

No. The code files must be in same language to be kept in App_code folder. In ASP.NET, the App_Code folder is primarily used for storing source code files that are automatically compiled at runtime. These files typically contain classes, business logic, data access code, or other code components used by the web application. As for … Read more

Is it possible to create web application with both webforms and mvc?

Yes. We have to include below mvc assembly references in the web forms application to create hybrid application. Yes, it is possible to create a web application that utilizes both ASP.NET Web Forms and ASP.NET MVC (Model-View-Controller). This approach is often referred to as “mixed-mode” or “hybrid” development. In a mixed-mode ASP.NET application, you can … Read more

Can we have a web application running without web.Config file?

Yes In ASP.NET, the web.config file is a fundamental part of the configuration for web applications. It contains settings that define how the application operates, including configuration for things like database connections, session state, authentication, and more. However, it is technically possible to run a web application without a web.config file. If you do not … Read more

List the events in page life cycle

1) Page_PreInit 2) Page_Init 3) Page_InitComplete 4) Page_PreLoad 5) Page_Load 6) Page_LoadComplete 7) Page_PreRender 8) Render In ASP.NET, the page life cycle refers to the series of events that occur from the time a page is requested until the time the page is fully rendered and sent to the client browser. Understanding the page life … Read more

Which type if caching will be used if we want to cache the portion of a page instead of whole page?

Fragment Caching: It caches the portion of the page generated by the request. For that, we can create user controls with the below code: If you want to cache only a portion of a page rather than the entire page in ASP.NET, you would typically use “Partial Page Caching” or “Fragment Caching.” Partial Page Caching … Read more