Browsed by
Tag: Interview Questions on ASP.NET

What are the different types of cookies in ASP.NET?

What are the different types of cookies in ASP.NET?

Session Cookie – Resides on the client machine for a single session until the user does not log out. Persistent Cookie – Resides on a user’s machine for a period specified for its expiry, such as 10 days, one month, and never. In ASP.NET, there are generally two types of cookies: Session Cookies: These cookies are stored in memory and are available only during the user’s session. They expire and are deleted once the user closes the browser or after…

Read More Read More

What is the function of the LoginStatus Control?

What is the function of the LoginStatus Control?

LoginStatus control is used to display Login/Logout links based on the login/authorization status of the current user. If the user has successfully logged in, the Logout link will be displayed. In ASP.NET, the LoginStatus control is used to provide functionality related to user authentication and login status within a web application. Its main function is to display different UI elements based on whether the user is logged in or not. Here’s a more detailed explanation: Login State Detection: The LoginStatus…

Read More Read More

How can we apply themes in ASP.NET application?

How can we apply themes in ASP.NET application?

A theme is a collection of settings that define the look of controls and web pages. These themes are applied across all the pages in a web application to maintain a consistent appearance. Themes are included images and skin files; the skin files set the visual properties of ASP.NET controls. Themes are of two types: Page Theme A Page theme contains the control skins, style sheets, graphic files, and other resources inside the subfolder of the App_Theme folder in the…

Read More Read More

What are the Navigations techniques in ASP.NET?

What are the Navigations techniques in ASP.NET?

Navigation can cause data loss if it not properly handled. We do have many techniques to transfer data from one page to another but every technique has its own importance and benefits. We will discuss the following techniques in this article. Response.Redirect Server.Transfer Server.Exceute Cross page posting In ASP.NET, navigation refers to the process of moving between different pages or views within a web application. There are several techniques for navigation in ASP.NET, including: Hyperlinks: Using HTML anchor tags (<a>)…

Read More Read More

How you can add an event handler?

How you can add an event handler?

Using the Attributes property of server side control. e.g. btnSubmit.Attributes.Add(“onMouseOver”,”JavascriptCode();”) In ASP.NET, you can add an event handler in several ways, depending on the context and the control you’re working with. Here are a few common methods: Using the ASP.NET Markup (Web Forms): In ASP.NET Web Forms, you can define event handlers directly in the markup using the OnEvent attribute. For example: aspxCopy code <asp:Button ID=”btnSubmit” runat=”server” Text=”Submit” OnClick=”btnSubmit_Click” /> In this example, btnSubmit_Click is the name of the event…

Read More Read More

What is MVC?

What is MVC?

MVC is a framework used to create web applications. The web application base builds on Model-View-Controller pattern which separates the application logic from UI, and the input and events from the user will be controlled by the Controller. For an ASP.NET interview question regarding MVC (Model-View-Controller), the correct answer would typically entail an explanation of the MVC architectural pattern used in ASP.NET development. Here’s a concise answer: “MVC, or Model-View-Controller, is a software architectural pattern used in ASP.NET development for…

Read More Read More

What is the file extension of web service?

What is the file extension of web service?

Web services have file extension .asmx. The file extension commonly associated with ASP.NET web services is .asmx. This extension is used for ASP.NET web service files, which typically contain the service endpoint definition and methods that can be called remotely over HTTP.

What is a Repeater Control and what are the templates supported by the Repeater?

What is a Repeater Control and what are the templates supported by the Repeater?

A Repeater is a Data-bound control. Data-bound controls are container controls. It creates a link between the Data Source and the presentation UI to display the data. The repeater control is used to display a repeated list of items. A Repeater has five inline templates to format it: – Displays Header text for a Data Source collection and applies a different style for the Header text. – Changes the background color or style of alternating items in a Data Source…

Read More Read More

What are Cookies in ASP.NET?

What are Cookies in ASP.NET?

Cookies are a State Management Technique that can store the values of control after a post-back. Cookies can store user-specific information on the client’s machine, such as when the user last visited your site. Cookies are also known by many names, such as HTTP Cookies, Browser Cookies, Web Cookies, Session Cookies and so on. Basically cookies are a small text file sent by the web server and saved by the Web Browser on the client’s machine. List of properties containing…

Read More Read More

What is WebParts in ASP.NET?

What is WebParts in ASP.NET?

ASP.NET 2.0 incorporates the concept of WEB PARTS in itself and we can code and explore that as easily as we have done with the other controls in the previous sessions. We can compose web parts pages from “web parts”, which can be web controls, user controls. Component of Web Parts The web parts consist of different components like, Web Part Manager Web Part Zone CatLog Part CatLog Zone Connections Zone Editor Part Editor Zone Web Part Zone Web Part…

Read More Read More