Interview Questions | Microsoft Tech | Interview Questions



Get "Microsoft Tech" Category

Subcategories

Sort by:

What is third party control WebORB for .NET ?

WebORB for .NET is a development and a runtime Rich Internet Application (RIA) enabling platform.

WebORB enables seamless integration between .NET server applications and a variety of rich internet clients including Flex, Flash and JavaScript(AJAX). WebORB provides feature-rich, but very easy-to-use infrastructure supporting client-server integration at the following levels:

Read more on What is third party control WebORB for .NET ?…

What is Destructor ?

Generally in C++ the destructor is called when objects gets destroyed. And one can explicitly call the destructors in C++. And also the objects are destroyed in reverse order that they are created in. So in C++ you have control over the destructors.In C# you can never call them, the reason is one cannot destroy an object. So who has the control over the destructor (in C#)? it’s the .Net frameworks Garbage Collector (GC). GC destroys the objects only when necessary. Some situations of necessity are memory is exhausted or user explicitly calls System.GC.Collect() method.Points to remember:

Read more on What is Destructor ?…

What is sub-query? Explain properties of sub-query

Sub-queries are often referred to as sub-selects, as they allow a SELECT statement to be executed arbitrarily within the body of another SQL statement. A sub-query is executed by enclosing it in a set of parentheses. Sub-queries are generally used to return a single row as an atomic value, though they may be used to compare values against multiple rows with the IN keyword.

Read more on What is sub-query? Explain properties of sub-query…

How do I publish my ASP.NET application to my ISP’s web server?

Your ISP must first create an IIS application and apply the Front Page Server Extensions to it. Then in Visual Studio .NET, select the “Project | Copy Project” menu. Then enter the URL and select the FrontPage web access method. The “Copy Project” feature copies all of the necessary files to your ISP’s machine for your ASP.NET application to run.

Read more on How do I publish my ASP.NET application to my ISP’s web server?…

What is the Pre-Compilation feature of ASP.NET 2.0? How does the new folder structure help for the same?

By default, ASP.NET Web pages and code files are compiled dynamically when users first request a resource such as a page from the Web site. After pages and code files have been compiled the first time, the compiled resources are cached, so that subsequent requests to the same page are extremely efficient. This was in previous versions of ASP.NET, but in ASP.NET 2.0 we have a feature called as pre-compilation. With this, ASP.NET can also pre-compile an entire site before it is made available to users. We have some pre-defined folder structures for enabling this feature of pre-compilation. Let us list down some of the folders with a brief description of what they are meant for.

Read more on What is the Pre-Compilation feature of ASP.NET 2.0? How does the new folder structure help for the same?…

How to Set Focus to Web Form Controls By Using Client-Side Script?

<script language=”javascript”>
 function SetFocus()
 {
      // W3C approved DOM code that will work in all modern browsers    
      if (document.getElementById)
           document.getElementById(‘txt2′).focus();
      else
      // To support older versions of IE:
      if (document.all)
           document.all(“txt2″).focus();
      return false;
 }
 </script>

Read more on How to Set Focus to Web Form Controls By Using Client-Side Script?…

Is it better to write code in C-Sharp or Visual Basic?

You can write code for your Web application in any language supported by the .NET Framework. That includes Visual Basic, C#, J#, JScript, and others. Although the languages have different syntax, they all compile to the same object code. The languages have small differences in how they support different features. For example, C# provides access to unmanaged code, while Visual Basic supports implicit event binding via the Handles clause. However, the differences are minor, and unless your requirements involve one of these small differences, the choice of programming language is one of personal preference. Once programs are compiled, they all perform identically; that is, Visual Basic programs run just as fast as C# programs, since they both produce the same object code.

Read more on Is it better to write code in C-Sharp or Visual Basic?…

What is Authorization in ASP.NET?

Authorization determines whether an identity/user should be granted access to a specific resource. Authorization requires that the authentication is already done. There are 2 ways to authorize access to a given resource:        

Read more on What is Authorization in ASP.NET?…

What are the modes of updation in an UpdatePanel?

An UpdatePanel has a property called UpdateMode. There are two possible values for this property:

  • Always
  • Conditional

If the UpdateMode property is set to œAlways, the UpdatePanel controls content is updated on each postback that starts from anywhere on the webpage. This also includes asynchronous postbacks from controls that are inside other UpdatePanel controls, and postbacks from controls which are not inside UpdatePanel controls.

Read more on What are the modes of updation in an UpdatePanel?…

How do I create pages for mobile devices?

ASP.NET will automatically detect the type of browser making the request. This information is used by the page and by individual controls to render appropriate markup for that browser. You therefore do not need to use a special set of pages or controls for mobile devices. (Whether you can design a single page to work with all types of browsers will depend on the page, on the browsers you want to target, and on your own goals.)

Read more on How do I create pages for mobile devices?…

What are Configuration Files under .NET Framework?

The .Net Framework provides a very convenient and flexible way to configure applications at run time. Using Configuration files developers and administrators can modify settings for applications without having to recompile the application, avoiding many of the redistribution /re-deployment hassles. For example, if you specify the connection string to be used for database connectivity to an application in the configuration files or an update path for the latest version, you will find configuration files make your application more adaptable. Configuration files contain settings for ASP.Net, built-in remoting channels, assembly binding, custom settings for applications, etc.
Configuration files are XML files that contain the configuration settings. There are three types of configuration files as described below.

Read more on What are Configuration Files under .NET Framework?…

What is NetAdvantage for ASP.NET?

The World Leader in AJAX-based ASP.NET User Interface Controls

With over 35 visual and non-visual controls, NetAdvantage for ASP.NET controls are your complete toolset for rapidly creating the presentation layer of your high performance Web applications; including AJAX grids, charts, toolbars, menus, listbars, trees, tabs, rich WYSIWYG HTML editing, integrated and standalone spell checking, explorer bars, scheduling, data entry editors and more!

Read more on What is NetAdvantage for ASP.NET?…

What is the .NET Framework?

The Microsoft .NET Framework is a platform for building, deploying, and running Web Services and applications. It provides a highly productive, standards-based, multi-language environment for integrating existing investments with next-generation applications and services as well as the agility to solve the challenges of deployment and operation of Internet-scale applications. The .NET Framework consists of three main parts: the common language runtime, a hierarchical set of unified class libraries, and unifying components.

Read more on What is the .NET Framework?…

What is the difference between critical section, mutex and semaphore ? Explain synchronization methods in win32 / MFC

By multi threading many things can be done at once. One can divide a single task into multiple parts and execute simultaneously. More than one thread running simultaneously. On single processor systems its usually utilities the IO operation time with other concurrently running thread to utilize CPU at its fullest strength. but on multiple processor systems, its truly executes the threads concurrently.

Read more on What is the difference between critical section, mutex and semaphore ? Explain synchronization methods in win32 / MFC…

Where will u store connection string in ASP.NET and how will you retrieve it in aspx page?

Store the conncetion string in web.config file as follows.

<configuration>
<appSettings>
<add key=”DbConnStr”
value=”Server=moon;database=Store;Trusted_Connection=yes” />
</appSettings>
</configuration>

The value can be retrieved as follows.

Dim dsn As String = ConfigurationSettings.AppSettings(“DSN”)

How will you get or set the values from a CheckBoxList or RadioButtonList control?

, use a For Each loop to check each control in the list

private void Button1_Click(object sender, System.EventArgs e)
{
foreach (ListItem lstItem in RadioButtonList1.Items)
{
if (lstItem.Selected)
Response.Write(lstItem.Text +
” is selected.<br>”);
}
}

Read more on How will you get or set the values from a CheckBoxList or RadioButtonList control?…

How to differentiate between DataSet and DataReader ?

To determine whether to use the DataSet or the DataReader when you design your application, consider the level of functionality that is needed in the application.

Use the DataSet in order to do the following with your application:

Read more on How to differentiate between DataSet and DataReader ?…

What are the different types of replication? Explain

The SQL Server 2000-supported replication types are as follows:

  • Transactional
  • Snapshot
  • Merge

Snapshot replication distributes data exactly as it appears at a specific moment in time and does not monitor for updates to the data. Snapshot replication is best used as a method for replicating data that changes infrequently or where the most up-to-date values (low latency) are not a requirement. When synchronization occurs, the entire snapshot is generated and sent to Subscribers.

Read more on What are the different types of replication? Explain…

Why a conventional ASP web page is considered to be stateless and how do you overcome this using ASP.NET?

When ever a URL request is made, Web server creates instance of requested web form, generates HTML and posts it to browser for rendering. It then destroys instance of web form on the server. When user submits data back to the web server, a new instance of web form is created which has no knowledge of earlier webform. Hence conventional web page is stateless. In ASP.NET before web form get destroyed the state of the webform is stored in Viewstate(hidden control) on the page and when the page is posted back, the state of the webform is restored from view state.

Read more on Why a conventional ASP web page is considered to be stateless and how do you overcome this using ASP.NET?…

What is the basic functions for master, msdb, model, tempdb databases?

The Master database holds information for all databases located on the SQL Server instance and is the glue that holds the engine together. Because SQL Server cannot start without a functioning master database, you must administer this database with care.

Read more on What is the basic functions for master, msdb, model, tempdb databases?…