Differentiate strong typing and weak typing

In strong typing, the data types of variable are checked at compile time. On the other hand, in case of weak typing the variable data types are checked at runtime. In case of strong typing, there is no chance of compilation error. Scripts use weak typing and hence issues arises at runtime. In the context … Read more

What is boxing and unboxing?

Boxing is assigning a value type to reference type variable. Unboxing is reverse of boxing ie. Assigning reference type variable to value type variable. In the context of ASP.NET or any .NET framework-related interview, the question “What is boxing and unboxing?” typically pertains to a fundamental concept in the C# programming language, which ASP.NET developers … Read more

In which event are the controls fully loaded?

Page load event. In ASP.NET, the controls are fully loaded during the Page_Load event. The Page_Load event is part of the page life cycle and occurs after all controls on the page have been initialized and their properties set. It is typically where you would perform initialization tasks, such as setting default values, binding data … Read more

How do you register JavaScript for webcontrols?

We can register javascript for controls using Attribtues.Add(scriptname,scripttext) method. In ASP.NET, there are several ways to register JavaScript for web controls depending on the requirements and context of your application. Here are some common methods: Inline Scripting: You can directly embed JavaScript within server-side ASP.NET controls using the Attributes.Add method. For example: csharpCopy code Button1.Attributes.Add(“onclick”, … Read more

What are the asp.net Security Controls?

<asp:Login>: Provides a standard login capability that allows the users to enter their credentials <asp:LoginName>: Allows you to display the name of the logged-in user <asp:LoginStatus>: Displays whether the user is authenticated or not <asp:LoginView>: Provides various login views depending on the selected template <asp:PasswordRecovery>: email the users their lost password In an ASP.NET interview, … Read more