Main Content RSS FeedRecent Articles

What is a Windows Service and how does its lifecycle differ from a “standard” EXE? »

Windows Service applications are long-running applications that are ideal for use in server environments. The applications do not have a user interface or produce any visual output; it is instead used by other programs or the system to perform operations. Any user messages are typically written to the Windows Event Log. Services can be automatically started when the computer is booted. This makes services ideal for use on a server or whenever you need long-running functionality that does not interfere with other users who are working on the same computer. They do not require a logged in user in order to execute and can run under the context of any user including the system. Windows Services are controlled through the Service Control Manager where they can be stopped, paused, and started as needed.

Describe the difference between a Thread and a Process? »

Thread - is used to execute more than one program at a time.

process - executes single program

Where do you add an event handler? »

It’s the Attributes property, the Add function inside that property.

E.g.

btnSubmit.Attributes.Add(”onMouseOver”,”some Client Code();”)

What’s a bubbled event? »

When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their event handlers, allowing the main Data Grid event handler to take care of its constituents. Suppose you want a certain ASP.NET function executed on Mouse Over over a certain button.

What’s the difference between Code behind=”MyCode.aspx.cs” and Src=”MyCode.aspx.cs”? »

Code Behind is relevant to Visual Studio.NET only.

Where do you store the information about the user’s locale? »

System.Web.UI.Page.Culture

Where does the Web page belong in the .NET Framework class hierarchy? »

System.Web.UI.Page

What methods are fired during the page load? »

  • Init() When the page is instantiated,
  • Load() - when the page is loaded into server memory,
  • PreRender () - the brief moment before the page is displayed to the user as HTML,
  • Unload() - when page finishes loading.
Page 277 of 284« First...«275276277278279»...Last »