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

Session Cookie: It resides on the client machine for a single session until the user logs out. Persistent Cookie: Resides on the user machine for a period specified for its expiry. It may be an hour, a month or never. In ASP.NET, there are primarily two types of cookies: Persistent Cookies: These cookies are stored … Read more

What is HTTP Handler?

Every request into an ASP.NET application is handled by a specialized component called HTTP handler. It is the most important component for handling ASP.NET application requests. It uses different handlers to serve different files. The handler for web page creates the page and control objects, runs your code and then renders the final HTML. Following … Read more

List all the templates of the Repeater control

ItemTemplate AlternatingItemTemplate SeparatorTemplate HeaderTemplate FooterTemplate In .NET, the Repeater control is used to display a repeated list of items bound to it. It doesn’t have predefined templates like some other controls (e.g., GridView or DataList). Instead, it offers flexibility by allowing you to define templates for the items it repeats through its ItemTemplate property. The … Read more

What are ASP.NET security controls?

<asp: Login>: Provides a login capability that enables the users to enter their credentials. <asp: LoginName>: Allows you to display the name of the logged-in user. <asp: LoginStatus>:Displays if the user is authenticated or not. <asp: LoginView>: provides various login views depending on the template that has been selected. <asp: PasswordRecovery>: Emails the users the … Read more

Explain passport authentication.

During the passport authentication, it first checks the passport authentication cookie, if the cookie is not available the application redirects to the passport sign on page. Passport service then authenticates the details of the user on the sign on page and if they are valid, stores them on the client machine and then redirects the … Read more