what is the use of Application.Exit() method?

Tuesday, December 29, 2009


Notifies all message loops to quit, closes windows opened by them and closes program.


www.codecollege.NET

what is the use of the Environment.Exit() method?


Terminates the program and gives the return value to os as exit code.


www.codecollege.NET

Daily Tips- Tip #45 - How to exit c# applications?


You can exit using the following 2 static methods,
1. Environment.Exit(returnval)
2. Application.Exit()


www.codecollege.NET

Daily Tips- Tip #44 - What is the use of checked keyword in c# ?


it is used to apply range checking to an operation.


www.codecollege.NET

What are the other UI related enhancements in asp.net 4.0?

Saturday, December 19, 2009


1. Better support to Web standards and Accessibility.
2. Better attribute values(boolean) for controls with Disabled attribute.
3. In-line css support for validation controls.
4. CSS for the Hidden Fields Div Element.
5. CSS and UI related to many other controls


www.codecollege.NET

What is the name of the new control added to asp.net 4.0 for filtering data?


QueryExtender Control.


www.codecollege.NET

What is the use of RenderOuterTable property in FormView control of asp.net 4.0 ?


It makes the CSS styling in the FormView control easier.


www.codecollege.NET

What is the PersistedSelection in a gridview newly introduced in asp.net 4.0?


It is a new attribute which makes the selected row in a gridview persistable between navigation between pages in a gridview.


www.codecollege.NET

What are the 3 algorithms used to generate clientIds in asp.net 4.0?


1. AutoID.algorithm
2. Static algorithm
3. Predictable algorithm


www.codecollege.NET

What is the use of new ClientIDMode property in asp.net 4.0?


It makes client-side script accessing asp.net server controls rendered as html controls.


www.codecollege.NET

How will you set the Incredible Shrinking Session State in asp.net 4.0?


Using the compressionEnabled config entry.


www.codecollege.NET

What is Incredible Shrinking Session State in asp.net 4.0?


It a feature which compresses session states in StateServer and SQL Server modes of session storage.


www.codecollege.NET

What is the use of RedirectPermanent?


It solves the permanently moved related issues.


www.codecollege.NET

Apart from Response.Redirect and Server.Transfer what is new in asp.net 4.0?


RedirectPermanent.


www.codecollege.NET

In what way is output-caching extensible?


It allows to cofigure custom output-cache providers.


www.codecollege.NET

What new enhancement was done to output cahcing in asp.net 4.0?


Output cahcing was made as extensible.


www.codecollege.NET

Using which attribute will you make the transformation in the web.config file of asp.net 4.0?


xdt:Transform="Replace"


www.codecollege.NET

What is the expansion of XDT?


XML Document Transform (XDT),is the feature that lets you transform a Web.config file.


www.codecollege.NET

How visual studio 2010 implements Web.Config Transformation?


using XDT.


www.codecollege.NET

What is Web.Config Transformation in visual studio 2010?


It transforms web.config from development environment to production environment.


www.codecollege.NET

What is called as a Web package in asp.net 4.0?


The compressed file created for your application using MSDeploy tool.


www.codecollege.NET

Which tool is used by visual studio 2010 to create zipped files?


MSDeploy tool .


www.codecollege.NET

What enhancement was done to Dynamic Data in asp.net 4.0 ?


Feature to build quick dynamic data websites.


www.codecollege.NET

Does asp.net 4.0 supports Dynamic Data ?


Yes.


www.codecollege.NET

How will you set the Backward Compatibility feature in asp.net 4.0?


You need make the following change to the web.config ,
<system.web>
<pages controlRenderingCompatibilityVersion="3.0"/>
</system.web>


www.codecollege.NET

What is the new feature introduced in redering in asp.net 4.0?


The new feature is to have Backward Compatibility in Control Rendering.


www.codecollege.NET

What is the class that you use when you define Routes?


The PageRouteHandler class .


www.codecollege.NET

What is the advantage of Routing?


It makes your site more user-friendly and your site content more discoverable by search engines.


www.codecollege.NET

Does ASP.NET 4.0 adds built-in support for routing with Web Forms?


Yes.


www.codecollege.NET

Explain What is browser capabilities providers?


It lets you build a provider that in turn lets you write custom code to determine browser capabilities.


www.codecollege.NET

What is the New Way to Define Browser Capabilities in asp.net 4.0?


It is browser capabilities providers.


www.codecollege.NET

Where is the browser capabilities object stored in asp.net?


HttpRequest.Browser property


www.codecollege.NET

How will you detect a browser's capabilities in asp.net?


using HttpBrowserCapabilities object .


www.codecollege.NET

How will you set the meta tag description for a page in asp.net 4.0?


using Page.MetaDescription


www.codecollege.NET

How will you set the meta keywords for a page in asp.net 4.0?


using Page.MetaKeywords.


www.codecollege.NET

What are the 2 properties added to the Page class for meta tags in asp.net 4.0?


1. Page.MetaKeywords
2. Page.MetaDescription


www.codecollege.NET

How will you make an application auto-startable in asp.net 4.0?


To use the auto-start feature, an IIS administrator sets an application pool in IIS 7.5 to be automatically started by using the following configuration in the

applicationHost.config file:






www.codecollege.NET

What is auto-start feature in asp.net 4.0?

Thursday, December 17, 2009


It is an feature which can be automatically started by using the configuration in the applicationHost.config file.


www.codecollege.NET

Explain Windows HTTP Services Certificate Configuration Tool (WinHttpCertCfg.exe)?


The Microsoft Windows HTTP Services (WinHTTP) Certificate Configuration Tool, WinHttpCertCfg.exe, enables administrators to install and configure client certificates in any
certificate store that can be accessed by the Internet Server Web Application Manager (IWAM) account.


www.codecollege.NET

What is the tool which is used to configure Windows HTTP Services Certificate ?


WinHttpCertCfg.exe


www.codecollege.NET

Daily Tips- Tip #43 - What is the shortcut key to bring up the Immediate window?

Wednesday, December 16, 2009


Ctrl + Alt + I.


www.codecollege.NET

What is an HttpCombiner?


An HTTP handler that combines multiple CSS, Javascript or URL into one response for faster page load. It can combine, compress and cache response which results in faster page
load and better scalability of web application.


www.codecollege.NET

Daily Tips- Tip #42 -How will you test memory leak in a .NET application?


using Perfmon.exe application.


www.codecollege.NET

What is the css equivalent for the NOBR tag?


the space character  


www.codecollege.NET

What is the best practice for calling explicit garbage collections?

Monday, December 14, 2009


You should call the finalizer after gc like,

//c#
GC.Collect();
GC.WaitForPendingFinalizers();


www.codecollege.NET

Which one is a best practice to use DirectCast or CType?


DirectCast


www.codecollege.NET

Which is the best practice in applying multiple attributes to a same member?


Instead of applying it as comma seperated, apply individually in separate lines,
//c#
[Conditional("TRACE")]
[DebuggerStepThrough]
void MyMethod()
{
}


www.codecollege.NET

Daily Tips- Tip #41 - How will you mark a method as obsolete?


//c#
[Obsolete("Call NewMethod instead")]
void OldMethod()
{

}


www.codecollege.NET

Daily Tips- Tip #40 - How will you mark a method as Non-CLSCompliant?


//c#
[CLSCompliant(false)]
public void MyMethod(0
{
}


www.codecollege.NET

Daily Tips- Tip #39 - How will you mark an assembly with CLSComplaint?


'VB


//C#
[assembly: CLSCompliant(true)>


www.codecollege.NET

Daily Tips- Tip #38 -What is the short-cut for uncommenting code ?


Ctrl + K, Ctrl + U


www.codecollege.NET

Daily Tips- Tip #37 -What is the Short-cut for commenting out the code?


Ctrl + K, Ctrl + C


www.codecollege.NET

What is the expansion of CAO?

Sunday, December 13, 2009


Client-Activated Objects.


www.codecollege.NET

Daily Tips- Tip #36 - How will you beging a running a standard application message loop on the current thread?

Friday, December 11, 2009


Application.Run(new Form1());


www.codecollege.NET

Daily Tips- Tip #35 - What is the method in MS Exception Management Application Block which is used to publish exceptions?


ExceptionManager.Publish(ex);


www.codecollege.NET

Is it true that objects don't always get destroyed immediately when the last reference goes away?


Yes. The garbage collector offers no guarantees about the time when an object will be destroyed and its memory reclaimed.


www.codecollege.NET

Daily Tips- Tip #34 - What is the best way to check for a null and an empty value in a string?


string mystr;
if (String.IsNullOrEmpty(mystr))


www.codecollege.NET

Daily Tips- Tip #33 - How to view trace details for a specific request?

Thursday, December 10, 2009


To view trace details for a specific request
1.Goto to Trace.axd in the root of your application.

For ex: if the URL for your application is http://localhost/myApplication, Goto http://localhost/myApplication/trace.axd to view the trace information for that application.

2.Select the View Details link for the specific request that you want to investigate.



www.codecollege.NET

How to enable application level Tracing?


<configuration>
<system.web>
<trace enabled="true" pageOutput="false" requestLimit="40" localOnly="false"/>
</system.web>
</configuration>


www.codecollege.NET

Which class has culture information used for resource files?

Monday, December 7, 2009


Thread.CurrentThread.CurrentUICulture


www.codecollege.NET

Which class do we need to assign formatting related culture information?


Thread.CurrentThread.CurrentCulture


www.codecollege.NET

How will you create a specific culture?


CultureInfo.CreateSpecificCulture()


www.codecollege.NET

Daily Tips- Tip #32 - #region blocks


Enclose Methods and Interfaces in #region blocks so that it can be collapsed or expanded.


www.codecollege.NET

How will you refine filter condition in Catch blocks and avoid rethrowing an exception?


use When keyword


www.codecollege.NET

Which is the best practice for explicit event subscriptions: using AddHandler and RemoveHandler or WithEvents?


using AddHandler and RemoveHandler


www.codecollege.NET

How will you unsubscribe an event?


You can unsubscribe an event using the RemoveHandler


www.codecollege.NET

Daily Tips- Tip #31 - How will you invoke Immediate window in Visual studio?


1. Open the command window in Visual Studio
2. Type “immed” To Execute statements


www.codecollege.NET

Which is the best practice for a string constant with backslash or which spans multiple line?


Verbatim(@) strings imporves code readability.


www.codecollege.NET

Which one is faster ChrW or Chr ?


ChrW


www.codecollege.NET

How will you protect your ASP.NET application from XSS?


You can prevent your website from xss using:
1. Validate Input received from your site.
2. Encode Output generated from your site.


www.codecollege.NET

How will you encode URL strings?


HttpUtility.UrlEncode


www.codecollege.NET

What is XSS?


Cross-site scripting .


www.codecollege.NET

Where will you handle application level Exceptions?


In the application_error event in the global.asax.


www.codecollege.NET

How will you lock configuration settings?


use the path attribute on the element to identify the Web application.


www.codecollege.NET

What interface do you need to implement for your HttpHandler to support sessions?


It needs to implement IRequiresSessionState or IReadOnlySessionState in order to use session state.


www.codecollege.NET

How will you find which control did the postback?


you can find the control which did postback using "__EVENTTARGET" with few exceptions.


www.codecollege.NET

How will you impersonate the original caller?


<authentication mode="Windows" />
<identity impersonate="true" />


www.codecollege.NET

When do you use windows authentication in ASP.NET 2.0?


Your ASP.NET application should use windows authentication when your users have windows accounts that can be authenticated by a server. The accounts can be local windows accounts or domain accounts.


www.codecollege.NET

How will you enforce strong passwords using membership feature in ASP.NET 2.0?


You can enforce strong passwords using membership by configuring the attributes minRequiredPasswordLength, minRequiredNonAlphanumericCharacters, and passwordStrengthRegularExpression on your membership provider configuration.


www.codecollege.NET

Where will you place your user-interface strings ?

Saturday, December 5, 2009


It is a best practice to place all your user-interface strings in a resource file rather burning them in code.


www.codecollege.NET

How to read a Session variable in javascript?

Friday, December 4, 2009


var jsUsername;
jsUsername = <%=Session["CurrentUser"]%>


www.codecollege.NET

Which control of Ajax control toolkit populates matching list upon entering characters in a text box?

Wednesday, December 2, 2009


AutoCompleteExtender.


www.codecollege.NET

What is SAML?


Security Assertion Markup Language.


www.codecollege.NET

How will declare a one way communication method in a ASP.NET Webservice?


[SoapDocumentMethod(OneWay=true)]
[WebMethod()]
public void AOneWayComm()
{
//
}


www.codecollege.NET

Visual Studio 2010 Beta 2


you can download Visual Studio 2010 Beta 2 from the following location,




www.codecollege.NET

How will you disable personalization in ASP.NET Web Parts?

Monday, November 30, 2009


By using the attribute personalization-enabled as given in the below example,
<asp:webpartmanager runat="server" id="wpm1"
personalization-enabled="false" />


www.codecollege.NET

Web Parts personalization is enabled by default on Web Parts pages. True or False.?


True.


www.codecollege.NET

What is purpose of WCAG ?


The Web Content Accessibility Guidelines (WCAG) documents explain how to make Web content accessible to people with disabilities.


www.codecollege.NET

What is url rewriting in asp.net?


URL rewriting is the process of intercepting an incoming Web request and automatically redirecting it to a different URL.


www.codecollege.NET

What is the expansion of WCAG ?


Web Content Accessibility Guidelines.


www.codecollege.NET

What is the short cut for collapsing all the open classes and methods in .net?

Saturday, November 28, 2009


Ctrl + M O


www.codecollege.NET

What is the short-cut for running a TestMethod in .NET Unit Test Case Project?


Ctrl + R , Ctrl + T


www.codecollege.NET

What should you do to make Routing handle requests that point to files?


If you want routing to handle all requests, even requests that point to files, you can overwrite the default behavior by setting the RouteExistingFiles property of the RouteCollection object to true. When you set this value to true, all requests that match a defined pattern are handled by routing.


www.codecollege.NET

What are URL Routes in ASP.NET Routing?


The URL patterns that you define are known as routes.


www.codecollege.NET

What is Asp.NET Routing?


ASP.NET routing enables you to use URLs that do not have to map to specific files in a Web site. Because the URL does not have to map to a file, you can use URLs in a Web application that are descriptive of the user's action and therefore more easily understood by users.


www.codecollege.NET

What is the attribute that need to be added for a class to be tested in Unit Testing?

Wednesday, November 4, 2009


[TestClass]


www.codecollege.NET

What is the attribute that need to be added for a method to be tested in Unit Testing?


[TestMethod]


www.codecollege.NET

What is nAML?


It is .NET Application Modeling Language, pronounced as “namel” is a visual modeling semantics to model .net applications with wide range of specific details. It contains extremely powerful visual notations and semantics to illustrate complex application components, processes and operations easily.


www.codecollege.NET

What is the method which converts a JSON string into a JavaScript object?

Tuesday, October 27, 2009


JSON.parse(strJSON)


www.codecollege.NET

What is the attribute you need to set to make a method to return a JSON object?


[WebGet( RequestFormat=WebMessageFormat.Json )]


www.codecollege.NET

What is the class used for xml serialization in .net?

Monday, October 19, 2009


System.Xml.Serialization.XmlSerializer



www.codecollege.NET

What is the file used to create a metabse backup of IIS 6.0 programatically?

Friday, October 9, 2009


IISback.vbs



www.codecollege.NET

What are the IIS backup files?


The backup files are the copies of the
1. MetaBase.xml , the metabase configuration file and
2. MSSchema.xml , the matching metabase schema file.



www.codecollege.NET

What is Windows Azure?

Thursday, October 8, 2009


Windows Azure is the cloud services operating system that serves as the development, service hosting, and service management environment for the Windows Azure Platform.



www.codecollege.NET

What Is an Indexer?


An indexer is a set of get and set accessors, similar to those of properties. It gives get and set access to multiple data members of the class.



www.codecollege.NET

What are the 5 scope specifiers available in c#?


1. private
2. public
3. protected
4. internal
5. protected internal



www.codecollege.NET

What are MMC tools or snap-ins ?


MMC tools (called snap-ins) can be used to administer networks, computers, services,
applications and other system components. MMC does not perform administrative functions, but hosts a variety of Windows and non-Microsoft snap-ins that do.



www.codecollege.NET

What is MMC ?


Microsoft Management Console is a framework that unifies and simplifies day-to-day system management tasks on Windows by providing common navigation, menus, toolbars, and workflow across diverse tools.



www.codecollege.NET

How will you register IIS in your computer?


regsvr32 %systemroot%\system32\inetsrv\inetmgr.dll



www.codecollege.NET

What is the expansion of MMC?


Microsoft Management Console



www.codecollege.NET

What is the name of interface that is implemented for an Asynchronous page?


IHttpAsyncHandler



www.codecollege.NET

What page directive you need to set to make a page Asynchronous?


<%@ Page Async="true" ... %>



www.codecollege.NET

What are the 2 commonly used Silverlight assemblies?

Wednesday, October 7, 2009


System.Windows.Controls.dll
System.Windows.Controls.Data.dll



www.codecollege.NET

Daily Tips- Tip #30 - How will you detect the name of the browser using ASP.NET ?


You can find that using the following code (which detects whether it is IE)
if(Page.Request.Browser.Browser=="IE")
{
}



www.codecollege.NET

ASP.NET Webpart basic sample

Tuesday, October 6, 2009

<h4>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:WebPartManager ID="WebPartManager1" runat="server">
</asp:WebPartManager>
<table>
<tr>
<td>
<asp:WebPartZone ID="MainZone" runat="server" HeaderText="My WebPart Zone">
<ZoneTemplate>
<asp:Label ID="Label1" runat="server" Title="Content">
<h2>Welcome to my Webparts world</h2>
</asp:Label>
</ZoneTemplate>
</asp:WebPartZone>
</td>
</tr>
</table>
</form>
</body>
</html>



</h4>

<a href="http://www.codecollege.NET">www.codecollege.NET</a>

LINQ Basic Sample with arrays


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LINQSamp1
{
class Program
{
static void Main()
{
int[] ages = { 47, 45, 53, 57,44,63,66 };
IEnumerable seniorcitizen =
from n in ages
where n >50
select n;
foreach (var x in seniorcitizen)
Console.Write("Senior Citizen aged:{0}\n", x);
Console.Read();
}
}
}




www.codecollege.NET

How will you end an asynchronous call with a delegate?


EndInvoke



www.codecollege.NET

How will you start an asynchronous call with a delegate?


BeginInvoke



www.codecollege.NET

What are the standard patterns for asynchronous methods calls?


1. Wait Until Done
2. Polling
3. Callback



www.codecollege.NET

When a program wants to retrieve the results of the completed asynchronous method,Which property will it check?


IsCompleted.



www.codecollege.NET

What is the expansion of DLR?


Dynamic language Runtime.



www.codecollege.NET

How will you make Visual Studio write the code for #region #endregion automatically ?


Type a , select '#region', Press Tab twice.



www.codecollege.NET

How will you make Visual Studio write the code for default destructor or finalizer automatically ?


Type ~ , Press Tab twice.



www.codecollege.NET

How will you make Visual Studio write the code Console.WriteLine automatically ?


Type cw ,Press Tab twice.



www.codecollege.NET

How will you make Visual Studio write the code for default constructor automatically ?


Type ctor , Press Tab twice



www.codecollege.NET

What is the expansion of VBL?

Monday, October 5, 2009


Virtual Build Labs



www.codecollege.NET

What are the special features of Test Edition of TFS?


Load and Manual Testing.



www.codecollege.NET

What are the special features of Development Edition of TFS?


Code Analysis, Code Metrics, Profiling.



www.codecollege.NET

What are the special features of Database Edition of TFS?


Database Deployment, DB Testing.



www.codecollege.NET

What are the special features of Architecture Edition of TFS?


It has features which focus on Modeling.



www.codecollege.NET

What is done in the Pre-Build Activity?


Generally we do the Build related settings here, For ex: setting the configuration of the build like "Debug|Any CPU".



www.codecollege.NET

What are the 3 types of branches being followed in TFS generally?


1. Main
2. Development
3. Production



www.codecollege.NET

What are the 2 popular types of Merging?


1. Based
2. Baseless



www.codecollege.NET

What are the various Branching Scenarios generally followed ?


1. Release Isolation
2. Feature Isolation
3. Team Isolation
4. Integration Isolation



www.codecollege.NET

What is the expansion of VCS?


Version Control System.



www.codecollege.NET

What is the expansion of CMMI?


Capability Maturity Model Integration.



www.codecollege.NET

How will you make those ASP.NET controls that don’t have UI visible in Design mode?


Click View > Visual Aids > select ASP.NET Non-Visual Controls or press Ctrl + Shift + N



www.codecollege.NET

What is the use of PropertyGridEditorPart ?


It is used to change the properties of objects in the corresponding webparts.



www.codecollege.NET

What are the various edit options available in an ASP.NET Webpart?


There are 4 types of edit options available in an ASP.NET Webpart, they are:
1. Appearance
2. Behavior
3. Property
4. Layout

What are the types of zones in ASP.NET Webpart zones?


There are 4 kinds of zones in webpart zones, they are:
1. WebPart Zone
2. Editor Zone
3. Catalog Zone
4. Connection Zone



www.codecollege.NET

what are the advantages of ASP.NET AJAX server framework?

Sunday, October 4, 2009


1. ASP.NET AJAX Server controls
2. ASP.NET AJAX ASP.NET Services
3. Microsoft AJAX Library



www.codecollege.NET

What are the advantages of using ASP.NET Ajax over the raw Ajax coding?


1. Browser Compatibility layer.
2. Core services.
3. Base Class Library.
4. Script controls and components.



www.codecollege.NET

What is the scripting language JSON is based on?


ECMAScript or ECMA-262.



www.codecollege.NET

What is JSON?


It is a Javascript Data serialization feature which does data persistance in a simple way where you require less code to read and write the data.



www.codecollege.NET

What should be done to enable PageMethods in ASP.NET?

Thursday, October 1, 2009


You should set the EnablePageMethods ="true" attribute of the ScriptManager control.



www.codecollege.NET

Which attribute make a client method searchable by ASP.NET AJAX?


ScriptMethod attribute, which is available in System.Web.Script.Sevices



www.codecollege.NET

What are the conditions for making a client method searchable by ASP.NET AJAX?


1. The method must be given the ScriptMethod attribute, which is available in System.Web.Script.Sevices
2. It must be Public
3. It must be Static



www.codecollege.NET

What is the use of PageMethods class in ASP.NET?


ASP.NET AJAX automatically searches for all methods declared Public Static and encapsulates them in the client PageMethods class.



www.codecollege.NET

What are Restful Web Services?


A Web serivce implemented using REST principles and HTTP.



www.codecollege.NET

What is REST service?


It is an architectural style for distributed hypermedia systems like WWW.



www.codecollege.NET

What are the 2 requirements REST services are based on?


1. An addressing scheme used to locate networked resources.
2. A methodology for returning representations of these resources.



www.codecollege.NET

What are the editor webparts available in ASP.NET 2.0?


There are 4 editor Webparts present in ASP.NET, they are :
1. AppreanceEditorPart
2. BehaviourEditorPart
3. LayoutEditorPart
4. PropertyGridEditorPart



www.codecollege.NET

What is the name of the method which determines whether server control contain child controls?


EnsureChildControls();



www.codecollege.NET

What are the webpart menu verbs?


There are 3 types of webpart menu verbs. They are:
1. Client-side verbs
2. Server-side verbs
3. Both.



www.codecollege.NET

How will you get a url reference to a web resource?


Use the GetWebResourceUrl() method of Page.ClientScript object.



www.codecollege.NET

How will you make a property have a Description?


Add [WebDescription("description of the property")] attribute to it.



www.codecollege.NET

How will you make a property have a friendly name?


Add [WebDisplayName("NameofProperty")] attribute to it.



www.codecollege.NET

How will you make a property to appear in the webpart tool pan?


Add [Webbrowsable(true)] attribute to it.



www.codecollege.NET

How will you make a property to support personalization or make it persistable to webpart file?


Add [Personalizable] attribute to it.



www.codecollege.NET

What is the use of Connect mode of asp.net webpart?


when activated, the user can configure connections between connectable webparts.



www.codecollege.NET

What is the attribute given to a method to make it a connection point in the Consumer Webpart?


[ConnectionConsumer]



www.codecollege.NET

What is the attribute given to a method to make it a connection point in the Provider Webpart?


[ConnectionProvider]



www.codecollege.NET

What is the namespace from which ASP.NET webparts need to be derived?


System.Web.UI.WebControls.WebParts.WebPart



www.codecollege.NET

What is the main concept behind AJAX ?


The main concept behind AJAX is to enable web pages to make HTTP requests asynchronously without reloading the entire page.


www.codecollege.NET

What is the expansion of EDM?


Entity Data Model.



www.codecollege.NET

What is the expansion of CSDL?


Conceptual Schema Definition Language.



www.codecollege.NET

What is an AtomPub?


It is an Atom Publishing Protocol.



www.codecollege.NET

What are the situations on which Caching Application Block can be used?


1. A static data (which rarely changes) need to be accessed.
2. when the data access is expensive.
3. Data should always be available even when the source is not available.



www.codecollege.NET

With which applications can we use Caching Application Block?


1. Windows Forms
2. Console application
3. Windows service
4. COM+ server
5. ASP.NET Web application or Web service if you need features not included in the ASP.NET cache



www.codecollege.NET

What is Silverlight?


Microsoft Silverlight is a cross-browser, cross-platform implementation of the .NET Framework for building rich interactive applications for the Web.



www.codecollege.NET

Name any 2 technologies which are used to develop RIA applications.


1. Adobe Flex
2. Microsfot Silverlight



www.codecollege.NET

What are exception handlers in the Exception Handling Application Block?


1. Wrap handler.
2. Replace handler.
3. Logging handler.
4. Fault Contract Exception Handler.



www.codecollege.NET

What is the Caching Application Block of Enterprise Library?


It allows the developer to incorporate a local cache in their applications which can either be an in-memory or backing store.



www.codecollege.NET

What is the Unity Application Block of Enterprise Library?


The Unity Application Block (Unity) is a lightweight, extensible dependency injection container that supports constructor injection, property injection, and

method call injection.



www.codecollege.NET

What is the Exception Handling Application Block of Enterprise Library?


The Enterprise Library Exception Handling Application Block lets developers and policy makers create a consistent strategy for processing exceptions that

occur in all architectural layers of an enterprise application.



www.codecollege.NET

What is the Logging Application Block of Enterprise Library?


It provides a standard Logging functionality for .net applications.



www.codecollege.NET

What is the expansion of ALM?


Application Lifecycle Management.



www.codecollege.NET

What are the 3 main components required for a ASP.NET webparts connection?


1. The Interface
2. Provider webpart
3. Consumer webpart



www.codecollege.NET

What model are ASP.NET webparts based on?


Pull model.



www.codecollege.NET

What is the expansion of ERP?


Enterprise Resource Planning.



www.codecollege.NET

What is Webpart Personalization?


It enables users to modify--or personalize--the layout, appearance, and behavior of Web Parts controls on a page.



www.codecollege.NET

What are the 3 fundamental building blocks of Webpart control set?


1. Web Parts UI controls
2. UI Structural Components
3. Personalization



www.codecollege.NET

What is a Webpart Zone?


It hosts the webpart controls to a page.



www.codecollege.NET

What is a Webpart Manager?


It manages the Webpart controls functionality and events that occur on the page.
Manages all connections between controls in the Web Parts zone on a page.



www.codecollege.NET

What is an ASP.NET Webpart?


It is an integrated set of ASP.NET controls that allow the end user to modify the content, appearance, and behavior of Web pages directly in a browser.



www.codecollege.NET

What is jQuery?


It is basically a JavaScript framework for writing huge task of JavaScript with few lines of code. jQuery is a fast, concise, JavaScript Library that

simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages



www.codecollege.NET

What is the role of WSDL in WCF?


Web Services Description Language is used to share Endpoint details with the Clients.



www.codecollege.NET

What is a WCF Contract?


It says about what the Endpoint communicates. It is a collection of messages in MEP (Message Exchange Patterns) format.



www.codecollege.NET

What is a WCF Endpoint Binding?


It says How to send the messages like specifying the transport protocol (e.g., TCP), encoding information (e.g., binary), and security requirements (e.g.,

SSL), etc.



www.codecollege.NET

What is a WCF Endpoint Address?


It says where you need to send the messages.



www.codecollege.NET

What is a WCF Endpoint?


The Endpoint is the point where messages are sent by the Client to the service. Every Service has some Endpoints based on the requirement and provides the

Client with the details. An Endpoint will have an Address, a Binding, and a Contract.



www.codecollege.NET

What is a WCF Client?


Clients send messages to the Service to do some work and they start the flow.



www.codecollege.NET

What is a WCF Service?


It is a piece of code which can be interacted with messages. They work based on the messages from the Clients and they wait until the Client sends the

messages.



www.codecollege.NET

Say any 3 key features of WCF?


1. Unified Programming Model.
2. Service Oriented Architecture.
3. Cross-Vendor interoperability.



www.codecollege.NET

What are the types of Virtualization?

Wednesday, September 30, 2009


a. Server
b. Desktop
c. Application


www.codecollege.NET

What is Virtualization?


Virtualization is a technique which provides a completely virtualized infrastructure for your enterprise, from data center to desktop.


www.codecollege.NET

What is the expansion of SBC?

Tuesday, September 29, 2009


Server-based computing .


www.codecollege.NET

What is the expansion of VDI?


Virtual Desktop Infrastructure .


www.codecollege.NET

What does Service Pack mean in TFS ?

Monday, September 28, 2009


It is a collection of Hotfixes and features.


www.codecollege.NET

What does Hotfix mean in TFS ?


It is a customer blocking bug(a show stopper or ship stopper).


www.codecollege.NET

What does Release Vehicle mean in TFS ?


This says how your product reaches your customer (Ex: Hotfix, Release, etc).


www.codecollege.NET

What does Reverse Integration mean in TFS ?


It is an integration which happens from the child to the parent.


www.codecollege.NET

What does Forward Integration mean in TFS ?


It is an integration which happens from the parent to the child.


www.codecollege.NET

What is an Build Agent in TFS?


It is a dedicated machine on which the build happens. It needs to have Build service installed in it.


www.codecollege.NET

What are different TFS Editions ?


1. Architecture
2. Database
3. Development
4. Test


www.codecollege.NET

How will you specify the Build Order for projects in TFS?


Right-click in the project , Select “Project Build Order”. There you can specify the order in which your projects need to be built.


www.codecollege.NET

What is the use of ConnectionConsumer attribute in asp.net?


It says that it is a receiver and it receives the message from the provider.


www.codecollege.NET

How to suppress code violations in FxCop?


You can suppress code violations in FxCop by providing using the attribute
System.Diagnostics.CodeAnalysis.SuppressMessage


www.codecollege.NET

What is the namespace used to interact with the code analysis tools in .NET?


System.Diagnostics.CodeAnalysis.


www.codecollege.NET

What is the use of CompilerGenerateAttribute in FxCop?


If this attribute is given to your code then FxCop will not raise warnings. Generally it is used to give for
compiler generated code.


www.codecollege.NET

What is shelving in TFS?

Sunday, September 27, 2009


Shelving is a way through which you save your code to TFS without checking in. If you want you can unshelve it whenever you want. Generally it is used for reviewing purpose


www.codecollege.NET

What is the Svcutil.exe ?

Friday, September 25, 2009


Service Model Metadata Utility Tool is used to generate the proxy from the client.


www.codecollege.NET

Explain what is a DTO?


A DTO is a pattern used to transfer data between applications.


www.codecollege.NET

What is the expansion of DTO?


Data Transfer Object .


www.codecollege.NET

What is the expansion of TDD?

Thursday, September 24, 2009


Test-Driven-Development .


www.codecollege.NET

What is the syntax which extracts the value of an item as a single string(ie scalar)?


%()


www.codecollege.NET

What is the syntax which extracts the value of an item as a list(ie vector)?


@()


www.codecollege.NET

What is the syntax which extracts the value of a property?


$()


www.codecollege.NET

What character is used in MS Build to represent the Escape sequence?


%


www.codecollege.NET

Name some of the popular Metadatas of an Item in MS Build or TFS Build?


RelativeDir ,RootDir ,Filename ,etc.


www.codecollege.NET

What is a property in MS Build or TFS Build?


It is a key/value pair.


www.codecollege.NET

What are the 2 popular ways to pass data to tasks and targets in MS Build or TFS Build?


1. Properties
2. Items


www.codecollege.NET

What is the main advantage of Clickonce deployment?


They are self-updating.


www.codecollege.NET

What are the deployment methods available for Asp.net?


1. XCOPY
2. Copy Website
3. Publish Website
4. ClickOnce
5. Setup Package


www.codecollege.NET

What will the deployment retail="true" do when set in a asp.net web.config file?


It forces the 'debug' attribute in the web.config to false, disables page output tracing, and forces the custom error page to be shown to remote users rather than the actual exception.


www.codecollege.NET

What is the expansion of MVC?

Wednesday, September 23, 2009


Model-View-Controller


www.codecollege.NET

What is a Unity Application Block ?


The Unity Application Block (Unity) is a lightweight, extensible dependency injection container that supports constructor injection, property injection, and method call injection.





www.codecollege.NET

What are the blocks in Enterprise Library?


1. The Caching Application Block

2. The Cryptography Application Block

3. The Data Access Application Block

4. The Exception Handling Application Block

5. The Logging Application Block

6. The Policy Injection Application Block

7. The Security Application Block

8. The Unity Application Block

9. The Validation Application Block



www.codecollege.NET

What does the term Instrumentation mean in a software industry?


It is the capacity to monitor and measure performance and to diagnose errors.


www.codecollege.NET

What is the expansion of SAML?

Tuesday, September 22, 2009


Security Assertion Markup Language.


www.codecollege.NET

What is the expansion of RIA ?


Rich Internet Applications.


www.codecollege.NET

What is the alias for the jQuery "class"?


$


www.codecollege.NET

What is the expansin of DOM ?


Document object model.


www.codecollege.NET

What is a callback function?


A callback is a function that is passed as an argument to another function and is executed after its parent
function has completed.


www.codecollege.NET

Tell some important functions in jQuery?


ready()
bind()
trigger()


www.codecollege.NET

What is the expansion of XAML ?


Extensible Application Markup Language.


www.codecollege.NET

What is the expansion of BAL?


Base Activity Library.


www.codecollege.NET

What is the expansion of WSE?


Web Services Enhancements.


www.codecollege.NET

What is the extension of WCF services hosted in IIS?


.svc


www.codecollege.NET

What is a Build machine?

Saturday, September 19, 2009


A Build machine is a computer which is dedicated for taking builds. It should have Build Service installed in it.


www.codecollege.NET

What are the types of Build Plans generally followed ?


There are generally 3 build plans followed in the industry, they are:
1. Basic
2. Standard
3. Advanced


www.codecollege.NET

What are the phases in the Build process?


There are 3 phases in the build process, they are:
1. Pre-Build Activities
2. Build
3. Post-Build Activities


www.codecollege.NET

What is the expansion of RSS ?

Wednesday, September 16, 2009


Rich Site Summary


www.codecollege.NET

What is the name of the new serializer that can be serialize and deserialize JSON objects to and from .NET introduced in .NET 3.5 ?


DataContractJsonSerializer


www.codecollege.NET

What is the Expansion of JSON ?


JavaScript Object Notation


www.codecollege.NET

What is REST?

Monday, September 14, 2009


Representational State Transfer .


www.codecollege.NET

What are CRUD operations ?


CRUD operations are (create, retrieve, update, and delete).


www.codecollege.NET

More Articles





1. Purpose and Usage of Partial Class




2. Design Patterns for all – Chapter I (Introduction to Design patterns and OOPs)




3. Design Patterns for all – Chapter II (Singleton Pattern)





4. Design Patterns for all – Chapter III (Factory Pattern)





5. FxCop – Part I (Introduction)





6. FxCop – Part II (A startup lesson on using FxCop)





7. FxCop – Part III (A detailed explanation over Project)





8. SharePoint for all – Chapter I (Introduction to the basics of SharePoint)





9. DataConnections in InfoPath 2007- Part I





10. Function to remove Cache Problem with IE




How will WCF communicate the Endpoint details with the client?


Using WSDL.


www.codecollege.NET

What are the 2 core assemblies that got automatically referenced with a WCF application?


System.ServiceModel.dll
System.Runtime.Serialization.dll


www.codecollege.NET

What is the use of svcutil.exe ?


It is a tool for generating client-side code from WSDL definitions in WCF.


www.codecollege.NET

What are the Predefined bindings in WCF?


1. BasicHttpBinding
2. WSHttpBinding
3. WSDualHttpBinding
4. NetTcpBinding
5. NetNamedPipeBinding
6. NetMsmqBinding


www.codecollege.NET

What is attribute you give to expose an operation in WCF?


[OperationContract]


www.codecollege.NET

What is attribute you give to make an interface into a WCF Service Contract?


[ServiceContract]


www.codecollege.NET

What is the Class or Interface for a WCF Contract?


Interfaces annotated with System.ServiceModel attributes


www.codecollege.NET

What is the Class or Interface for a WCF Binding?


System.ServiceModel.Binding


www.codecollege.NET

What is the Class or Interface for a WCF Address?


System.Uri


www.codecollege.NET

What is the Class or Interface for a WCF Endpoint?


System.ServiceModel.ServiceEndpoint


www.codecollege.NET

How will you check whether automated build is successful and call a custom task on successful build?

Sunday, September 13, 2009


You can do that by providing the following config entry in the MS Build or TFS Build config file,
<GetBuildProperties TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
BuildUri="$(BuildUri)"
Condition=" '$(IsDesktopBuild)' != 'true' ">
<Output TaskParameter="CompilationSuccess" PropertyName="LocalCompilationSuccess" />
</GetBuildProperties>




<Exec Condition="'$(LocalCompilationSuccess)'=='true'" Command="do_the_voodoo"/>


www.codecollege.NET

What are the new Features in Team Build 2008 ?

Sunday, September 6, 2009


1. Continuous Integration
2. Build Queuing
3. Scheduled Builds
4. Build Agent Management
5. Build Definition Editing GUI
6. Better Build Management
7. Managed object model
8. Improved extensibility


www.codecollege.NET

How will you build using MS Build command line ?

Wednesday, September 2, 2009


MSBuild.exe TestProj.proj /property:Configuration=Debug


www.codecollege.NET

What are Targets in MS Build?


They are used to group Tasks.


www.codecollege.NET

What are Tasks in MS Build?


Tasks are reusable units of executable code used by MSBuild projects to perform build operations. They are declared inside the Target element.


www.codecollege.NET

How will you refer properties in a project file?


$(PropertyName).


www.codecollege.NET

How will you refer item collections in a project file?


@(ItemCollectionName).


www.codecollege.NET

Give an example for PropertyGroup



ABC



www.codecollege.NET

What are Properties in MS Build?


They are key/value pairs which are used to configure the build. They are created by declaring a
property element inside PropertyGroup element.


www.codecollege.NET

Give an example for ItemGroup ?







www.codecollege.NET

What is an ItemGroup in MS Build ?


Items represent inputs to the build system and they will be added as collections which are used as
parameters for tasks. They are available inside the ItemGroup element.


www.codecollege.NET

What is MS Build ?


It is a build tool for Visual Studio. It will build the software in environments where even visual studio is not installed.


www.codecollege.NET

What is Team Foundation Proxy Server ?


It is used to develope a single application from many places around the world at the same time.


www.codecollege.NET

In TFS if you Branch A to B , then B to c. If you delete branch B , then is it possible to


No.


www.codecollege.NET

When are Date Type branching used ?


It is used on situations like release.


www.codecollege.NET

When are Changeset Type branching used ?


It is used on situations like maintenace or bug fixing , ie., you knew where the break occured.


www.codecollege.NET

When are Latest Version Type branching used ?


It is used on situations like hotfix where you need the stable lastest version.


www.codecollege.NET

When are Workspace Type branching used ?


Workspaces are mapped from developer's machine to server , so this type will reflect local
files.


www.codecollege.NET

When are Label Type branching used ?


It is not time-based, instead used on such situations where branching needs to be done based on
a collection of files grouped by a user.This type of branching is for the needs of an individual
user.



www.codecollege.NET

What are the options available on creating a branch?


There are 5 options available on creating a branch, they are :
1. Changeset
2. Date
3. Label
4. Latest Version
5. Workspace version


www.codecollege.NET

What is TFS ?

Sunday, August 30, 2009


Team Foundation Server.


www.codecollege.NET

What is the Expansion of WIQL?


Work Item Query Language (WIQL).


www.codecollege.NET

What are the 2 process templates in TFS ?


1. Microsoft Solutions Framework for Agile Software Development version 4.0 (MSF Agile for short)
2.MSF for CMMI Process Improvement version 4.0 (MSF CMMI for short).


www.codecollege.NET

What is a WorkItem in TFS ?


It is used to track anything related to your team Project, like bugs and tasks.


www.codecollege.NET

Name any two Managed API Assemblies of Team Build 2008.


1. Microsoft.TeamFoundation.Build.Client.dll
2. Microsoft.TeamFoundation.VersionControl.Client.dll


www.codecollege.NET

What is the purpose of the Managed API in Team Build 2008?


It allows us to program the Team Build.


www.codecollege.NET

What is "Partially Completed" option in TFS ?


It is a Build with one or more failed tests.


www.codecollege.NET

Does the TFS 2008 support Queue Build ?


Yes.


www.codecollege.NET

What is a Build Retention Policy ?


It is a policy using which you can decide how many build results Team Build can keep.


www.codecollege.NET

What is Continuous Integration in TFS Build?


It is nothing but the Build is done on every Check-in.


www.codecollege.NET

Does TFS store all the configuration data in TFSBuild.proj file itself ?


No. Most of the data are stored in TFS databases.
Note: In VS 2005 all configuration data were stored in this file.


www.codecollege.NET

What is TFSBuild.proj file?


It is an XML file that contains build configuration data.


www.codecollege.NET

What is a BVT ?


Build Verification Test(BVT) is a type of automated test which is used to validate your team's work after build.


www.codecollege.NET

What is Build Automation ?


It is a process of collecting, assembling, validating and auditing the artifacts that compirse your solution.


www.codecollege.NET

What is STM.NET ?


STM.NET is an experimental version of the .NET Framework which has been modified to enable software transactional memory. STM.NET simplifies multithreaded application programming by allowing you to delineate sections of your code as transacted, atomic, and isolated from other atomic regions.


www.codecollege.NET

What is B# ?


It is a programming language for Embedded Systems.


www.codecollege.NET

Daily Tips- Tip #29 - How can i copy the files in the debug folder to some other directory automatically using the Build macros?


Add the following line of code to the Post build event in the project properties,
call copy $(ProjectDir)$(OutDir) c:\test\


www.codecollege.NET

Daily Tips- Tip #31 - How can i copy the files in the debug folder to some other directory automatically ?


Add the following line of code to the Post build event in the project properties,
call copy E:\projectdir\bin\Debug c:\test\


www.codecollege.NET

What is the expansion of WMI ?


Windows Management Instrumentation.


www.codecollege.NET

What is the name of the file you need to change to add pre- and post-build functionality into your custom package ?


Targets file.
It is located in ,
%WINDOWS%\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets


www.codecollege.NET

Which tool can be used to do the Automated Build ?


MS Build.


www.codecollege.NET

What is the Expansion of UML ?

Monday, August 24, 2009


Unified Modelling Langaguage.


www.codecollege.NET

What is the Expansion of URI ?


Uniform Resource Identifier.


www.codecollege.NET

What is the Expansion of (STLC)?

Saturday, August 22, 2009


Software Testing Life Cycle.


www.codecollege.NET

Is it true that Webservices can be written only in .NET ?


No.


www.codecollege.NET

What is Windows Cardspace ?

Friday, August 21, 2009


Windows CardSpace is client software that enables users to provide their digital identity to online services in a simple, secure, and trusted way.


www.codecollege.NET

What is the Expansion of MS EF?


Microsoft Entity Framework


www.codecollege.NET

What is the Expansion of MSMQ?


Microsoft Message Queuing


www.codecollege.NET

Tell some of the new features of ASP.NET 3.5?

Saturday, August 15, 2009


1. Expression Trees
2. Controls
1. ListView
2. DataPager
3. Support for LINQ, WCF , WPF and WWF



www.codecollege.NET

What is ContentPresenter?

Thursday, August 13, 2009


It is used to present content which can be a text,image ,CLR objects, XML ,etc. It is a part of WPF.


www.codecollege.NET

What are the disadvantages of LINQ over Stored Procedures ?


1.Network traffic: LINQ needs to send the entire query over the network whereas the SP need only to send sproc-name and argument.

2.Control over DB: LINQ has lesser control over DB compared to SPs as they run within the DB.


www.codecollege.NET

What is the Expansion of CSS ?


Cascaded Style sheet.


www.codecollege.NET

Full Functional sample for ASP.NET FileUpload Server Control

Wednesday, August 12, 2009


The following example will save the uploaded file in the root folder of your application.

Default.aspx
============
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:FileUpload ID="fupTest" runat="server" />&nbsp;
<asp:Button ID="btnUpload" runat="server" OnClick="btnUpload_Click" Text="Upload" />
<br />
<asp:Label ID="lblStatus" runat="server"></asp:Label></div>
</form>
</body>
</html>

Default.aspx.cs
============
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
public partial class _Default : System.Web.UI.Page
{

protected void btnUpload_Click(object sender, EventArgs e)
{
if (fupTest.HasFile )
{
try
{
string strFileName = Path.GetFileName(fupTest.FileName);
fupTest.SaveAs(Server.MapPath("~/") + strFileName);
lblStatus.Text = "File Uploaded Successfully";
}
catch (Exception ex)
{
lblStatus.Text = "Error File could not be uploaded. The Reason for Failure is: " + ex.Message;
}
}

}
}


www.codecollege.NET

ASP.NET FileUpload Server Control Sample 1


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:FileUpload ID="FileUpload1" runat="server" /></div>
</form>
</body>
</html>


www.codecollege.NET

.NET 3.0, Abbreviations and Expansions, Glossary,

What is the Expansion of ADO.NET MARS ?


Multiple Active Result Sets.


www.codecollege.NET

What is the Expansion of MOSS 2007 ?


Microsoft Office Sharepoint Server 2007.


www.codecollege.NET

What is the Expansion of WPF ?


Windows Presentation Foundation.


www.codecollege.NET

What is the Expansion of WWF ?


Windows Workflow Foundation.


www.codecollege.NET

What is the Expansion of WCF ?


Windows Communication Foundation.


www.codecollege.NET

Name some built-in WebParts in Sharepoint

Tuesday, August 11, 2009


Content Query WebPart
Business DataList
Business Data Related List


www.codecollege.NET

What are the two portions of ASP.NET AJAX ?

Monday, August 10, 2009


The 2 portions are :
1. Server-side AJAX
2. Client-side AJAX


www.codecollege.NET

What is the Expansion of LINQ ?

Sunday, August 9, 2009


Language INtegrated Query.


www.codecollege.NET

What type of content can be virtualized using Virtual Path providers ?

Saturday, August 8, 2009


Browseable types, such as ASPX, master pages, ASCX, and themes.


www.codecollege.NET

What is a Virtual path provider?

Friday, August 7, 2009


It is a mechanism which extends ASP.NET to serve virtual content to the compiler.
Ex:
It provides content from database instead of file system.


www.codecollege.NET

What is SafeMode Parser in ASP.NET ?


SafeMode parser is an alternate to the ASP.NET Compiler. It does not compile the pages instead interpretatively parse the page.


www.codecollege.NET

What does is the main difference between the SafeMode parser and Asp.net?


Code compilation.


www.codecollege.NET

Does SafeMode Parser support AspCompat functionality ?


No.


www.codecollege.NET

What is the expansion of CLR ?


Common Language Runtime.


www.codecollege.NET

What is the expansion of JIT ?


Just-In Time Compiler.


www.codecollege.NET

What is the expansion of IIS?


Internet Information Server.


www.codecollege.NET

What is the Expansion of AJAX ?


Asynchronous JavaScript and XML.


www.codecollege.NET

What is the Expansion of CCW?


COM Callable Wrapper.


www.codecollege.NET

What is the Expansion of RCW?


Runtime Callable Wrapper .


www.codecollege.NET

Can you configure a .NET Remoting object via XML file?


Yes.


www.codecollege.NET

What is the Expansion of CLI ?


Common Language Interface.


www.codecollege.NET

What does SOAP stand for?


Simple Object Access Protocol.


www.codecollege.NET

What does WSDL stand for?


Web Services Description Language.


www.codecollege.NET

What is WPF (Windows Presentation foundation )?

Thursday, August 6, 2009


Windows Presentation Foundation (WPF) provides a unified programming model for building rich Windows smart client user experiences that incorporate UI, media, and documents.


www.codecollege.NET

What is WWF or Windows Workflow Foundation ?


WWF (Windows Workflow Foundation) is a platform for designing, managing and executing workflow-enabled applications.


www.codecollege.NET

What is Windows communication foundation, WCF?


WCF (Windows Communication Foundation) offers Distributed Programming through Service Oriented Programming Model.


www.codecollege.NET

Daily Tips- Tip #28 - How to access ViewState value of the previous page in the current page ?


Previous page's information is stored in a property called PreviousPage and you can access it using the following code,
Page prePage = this.PreviousPage;
Label totalEmployees = prePage.FindControl("lblTotEmployees");
Response.Write(totalEmployees.Text);


www.codecollege.NET

What are the differences between Cache object and Application object ?






















Sno Application
Cache
1 Life of Application objects are till the end of Application
unless you destroy it.
Also provides application-wide scope but get destroyed by
expiration mechanism.
2 You have Locking mechanism in Application object Not available.
3 Not available. Has a feature called SQL Cache dependency using which you
can invalidate a cache object based on the changes to its source in the
table

What is marshalling? What are the types of marshalling?


Marshalling is the process in which the data is serialized at one application domain and deserialized at the another application domain or vice versa.
Types :
1. Marshal by value
2. Marshal by reference


www.codecollege.NET

What data type does the RangeValidator supports ?


Integer, String and Date .


www.codecollege.NET

Can Partial Classes be applied over an enumerator ?


No.


www.codecollege.NET

Can Partial Classes be applied over a Delegate ?


No.


www.codecollege.NET

On which situation Partial Classes are used ?


When multiple programmers need to work on a same class then Partial class is an obvious choice.


www.codecollege.NET

What is a Partial Class (or struct or interface)?


A partial class is a feature in which you split a class definition into two or more files. All the parts are joined together when the application is compiled.


www.codecollege.NET

Do Login Controls implement Forms Authentication ?


Yes.


www.codecollege.NET

Can we Inherit Abstract Class ?


Yes.


www.codecollege.NET

How can you provide an alternate color schema in a Repeater Control ?


You can provide an alternate color schema in a Repeater Control AlternatingItemTemplate.


www.codecollege.NET

What is the life span for items stored in ViewState ?


Items stored in ViewState exists until the page in which they are stored exists.


www.codecollege.NET

Is String Mutable or Immutable ?


Immutable


www.codecollege.NET

How will you sort an Array in descending order?


You can sort an Array in descending by the calling the following methods,
Sort();
Reverse();


www.codecollege.NET

Daily Tips- Tip #27 - How will you get the value of ASP.Net control in Javascript ?


You can call the ASP.NET control from Javascript using the document.getElementById method.
Ex:
Let txtEmployeeName be a Textbox, then
var tEmp = document.getElementById('<%=txtEmployeeName.ClientID%>');


www.codecollege.NET

Daily Tips- Tip #26 - An alternate to Javascript's document.getElementByid()?


You can use as an alternate to Javascript's document.getElementByid(), the following ASP.NET AJAX's method,
$get('nameofcontrol')
Ex:
var myctrl = $get('lblTotal')


www.codecollege.NET

What is the difference between Convert.ToInt32(string) and Int32.Parse(string) ?


Int32.Parse thorws an exception when null value is passed whereas Convert.ToInt32 returns zero . Apart from this both function in a simillar manner.


www.codecollege.NET

What is the difference between EVAL and BIND ?


Eval is readonly and used to display whereas Bind is used to both display and update .


www.codecollege.NET

What is a Sharepoint Site Collection ?


It is a group of sites built over WSS and it requires a top-level site.


www.codecollege.NET

SharePoint 2010 Technical Preview


Microsoft SharePoint Team Blog has announced SharePoint 2010 Technical Preview today.
What is SharePoint 2010 ?
Definition by Microsoft is "SharePoint 2010 is the business collaboration platform for the Enterprise & the Web that enables you to connect & empower people through an integrated set of rich features."

For more information refer the following link,
SharePoint 2010 Technical Preview


www.codecollege.NET

What is a Top-level site in Sharepoint ?


This is the root site for your sites. It will have sub-sites and i will not be a sub-site to any other site.


www.codecollege.NET

How will you programmatically read the identity of the impersonated user ?

Wednesday, August 5, 2009


VB
==
Dim curUser As String = _
System.Security.Principal.WindowsIdentity.GetCurrent().Name

C#
==
String curUser =
System.Security.Principal.WindowsIdentity.GetCurrent().Name;


www.codecollege.NET

Which class is doing the URL authorization ?


UrlAuthorizationModule.


www.codecollege.NET

Which class is doing the File authorization ?


FileAuthorizationModule.


www.codecollege.NET

What is URL authorization in ASP.NET ?


It is an authorization which maps users and roles to URLs in ASP.NET applications.


www.codecollege.NET

What is File authorization in ASP.NET ?


It is an Authorization which checks the access control list (ACL) of the .aspx or .asmx handler file to determine whether a user has access to the file.


www.codecollege.NET

What are the Types of Authorization ?


There are two types of Authorizations, they are:
1. File authorization
2. URL authorization


www.codecollege.NET

When will you go for DataReader and when for DataAdapter ?


You can go for DataReader when you want to only display the data.
You can go for DataAdapte when you want to display ,edit and update the data.


www.codecollege.NET

What are the differences between DataReader and DataAdapter ?




























Sno DataReader
DataAdapter
1 Works in Connected Mode Works in Disconnected Mode
2 Can have only one record at a time Can have more than 1 records.
3 Is ForwardOnly and Readonly Can navigate front and back and editable
4 Faster Slower





www.codecollege.NET

Daily Tips- Tip #25 - How will you Regenerate Expired Session Identifiers in ASP.NET ?



To Regenerate Expired Session Identifiers in ASP.NET, set the regenerateExpiredSessionId attribute of the sessionState configuration element to true.




www.codecollege.NET

How will you communicate between 2 user controls in ASP.NET ?



You can communicate between 2 user controls in ASP.NET, by using Properties and Methods defined inside them and by calling the usercontrol using FindControl() method along with the respective property.




www.codecollege.NET

CapGemini ASP.NET, SHAREPOINT, MOSS 2007 Interview Questions Set 2



1. What are the Session State Mechanisms in asp.net
2. What are the different types of Caching
3. What are the differences between Caching and Application
4. What areas have you worked with MOSS 2007
5. What are the objects in Classic ASP
6. How will you communicate between 2 user controls
7. How will you achive fragment caching and pageoutput caching
8. whats the difference between datareader and dataadapter
9. when will you go for datareader and when to dataadapter
10. Does cache supports Application Events
11. What are the different types of Authentications in ASP.NET?
12. What are the different types of Authorization in ASP.NET ?
13. What are the various Expiration methods in Cache ?


www.codecollege.NET

How are Sessions identified in ASP.NET ?



Sessions are identified by a unique identifier that can be read by using the SessionID property.




www.codecollege.NET

What type of object can you store in OutProc mode of sessions ?


The session-variable type must be either a primitive .NET type or serializable..



www.codecollege.NET

What type of object can you store in InProc mode of sessions ?


can be any valid .NET Framework type.



www.codecollege.NET

Can I share session state between ASP.NET and ASP pages?


Yes.



www.codecollege.NET

Does all ASP.NET Web server controls have a Render method ?


Yes.



www.codecollege.NET

Is Render an Event ?


No, its a Method.



www.codecollege.NET

When is the ViewState information saved for the page and for all controls in ASP.NET Page Life Cycle?


Before the SaveStateComplete Event and after the PreRender Event.



www.codecollege.NET

Does the PreRender Event occur for every control on the ASP.NET Page ?


Yes.



www.codecollege.NET

When is the Viewstate information loaded in the Page Life Cycle of an Asp.NET page ?


After the InitComplete event and before the PreLoad Event ASP.NET Page loads view state for itself and all controls, and then processes any postback data.



www.codecollege.NET

How can we Create a Strongly-Typed Reference with the Master Page ?


You can can we Create a Strongly-Typed Reference with the Master Page using the ,
@MasterType Directive .



www.codecollege.NET

How will you get an instance of the Master Page used in your current page ?


You can get an instance of the Master Page used in your current page using the property,
Page.Master .



www.codecollege.NET

How will you read the Master Pages content from the Content Page ?


You canread the Master Pages content from the Content Page by creating Public Properties and Methods in the masterpage.



www.codecollege.NET

What is the use of the Init Event ?


Use this event to read or initialize control properties.



www.codecollege.NET

What is the use of the PreInit Event ?


You can use the PreInit event for the following ,

1. Check the IsPostBack property to determine whether this is the first time the page is being processed.

2. Create or re-create dynamic controls.

3. Set a master page dynamically.

4. Set the Theme property dynamically.



www.codecollege.NET

Skelda ASP.NET, Sharepoint, SQL server interview questions



1. What is a masterpage
2. how will you get a value from a master page to the content page
3. what are the differences between UDF and SP
4. Is an UDF Precompiled
5. Explain the Page life cycle
6. what is inetinfo
7. what is aspnet_Wp.exe
8. what is ISAPI filter
9. what is the flow of the control for a page request
10. how you gave anonymous access for a sharepoint site
11. what privileges you gave for anonymous access of a sharepoint site
12. Is there any event called PreInit
13. When is the viewstate information loaded in a page
14. Have you done performance tuning in sql server
15. what does the "Run with privelege" meanin sharepoint?
16. What are the steps for deploying a webpart
17. What is an Bubbled Event ?
18. How will you fire an Event when mouse is moved over a button ?


www.codecollege.NET

What is Aggregation ?




Aggregation is a form of composition where one looks at the system as a whole rather than as parts.


www.codecollege.NET

What is Composition ?




Composition is a way to combine simple objects or data types into more complex ones.


www.codecollege.NET

What is Association ?



Association defines a relationship between classes of objects which allows one object to cause another to perform an action on its behalf.


www.codecollege.NET

What is Polymorphism ?



A feature using which more than one definition is given to a single method or operator.


www.codecollege.NET

What is Encapsulation ?



It is a feature which hides data and functions from others classes.


www.codecollege.NET

What is Hybrid Inheritance ?



A class inherits from more than one type of Inheritances mentioned above.
Ex:
It inherits from multiple and also multilevel


www.codecollege.NET

What is Multilevel Inheritance ?



classes inherits from parent classes in multiple level, ie Child inherits from Parent and grandchild classes inherit from Child , like that.


www.codecollege.NET

What is Multiple Inheritance ?



A class inherits from more than 1 class.


www.codecollege.NET

What is a Single Inheritance ?



A class inherits from a single class.


www.codecollege.NET

What are the major Types of Inheritance ?



The major Types are:
Single
Multiple
Multilevel
Hybrid


www.codecollege.NET

What is Inheritance ?

A feature in which the base class’s characteristics and behavior are derived to the child class also.

What is an Object ?



Is an instance of a class. It will be exactly the same as a class but can be assigned values and used whereas a class can’t be used without creating objects.


www.codecollege.NET

What is a Class ?


Class:
It defines characteristics of a thing and its behavior. It is blueprint based on which objects are created.
Example: Employee (which will have all the details about the employee like name, id, salary, etc and the methods which describes his behavior like calcSalary(),displaydetails(),etc.


www.codecollege.NET

What is a Concurrency Design Patterns ? Give Examples.


They deal with multi-threaded programs. They provide solutions for multi-thread design problems.
Example:
Balking, Double checked locking, guarded suspension


www.codecollege.NET

What is a Behavioral Design Pattern ? Give Examples.


Behavioral
They deal with communication between objects. They provide you the best way to communicate between objects.
Example:
Chain of responsibility, Command, Interpreter


www.codecollege.NET

What is a Structural Design Pattern ? Give Examples.


Structural
They deal with relationship between entities. They provide you the best way to relate entities on various scenarios.
Example:
Adapter, Aggregate, Bridge


www.codecollege.NET

What is a Creational Design Pattern ? Give Examples.


They deal with object creation. They provide you the best way to create objects based on the current situation.
Example:
Singleton, Factory method, Abstract factory, Builder


www.codecollege.NET

What are the Types of Design Patterns ?


The Main Types of Design Patterns are:
Design Patterns are generally classified into three categories, they are:
1. Creational
2. Structural
3. Behavioral


www.codecollege.NET

What are the 3 important object oriented concepts ?


1. Polymorphism
2. Inheritance
3. Encapsulation


www.codecollege.NET

Is non-clustered index faster than clustered index ?


Yes.


www.codecollege.NET

What is the smallest unit of execution in .NET ?


An Assembly.


www.codecollege.NET

What does the Initial Catalog parameter denote in the connection string ?


The name of the database to be connected.


www.codecollege.NET

Among Windows Authentication and SQL Server Authentication, which one is the most trusted ?


Windows Authentication as the checking is done with the Active Directory.


www.codecollege.NET

How will you debug an ASP.NET Web application ?


By attaching the aspnet_wp.exe process to the DbgClr debugger.


www.codecollege.NET

How will you generate documentation from the C# file using a command-line compiler ?


If the file is commented properly , Compiling it with the /doc switch will generate the documentation.


www.codecollege.NET

What are the different ways a method can be overloaded ?


1. With different number of arguments
2. With different datatypes of arguments
3. With different order of arguments


www.codecollege.NET

Can you declare an overriden method to be static if the original method is not static ?


No.


www.codecollege.NET

What’s the implicit name of the parameter that gets passed into the set method/property of a class?


Value.


www.codecollege.NET

How will specify BULK Insert to fire triggers ?


You can specify BULK Insert to fire triggers by "FIRE_TRIGGERS" option.


www.codecollege.NET

Will by default BULK Insert fire Insert Triggers ?


No.


www.codecollege.NET

Can a method alone be sealed ?


Yes.


www.codecollege.NET

How will you prevent your class being inherited by another class ?


Make that class as Sealed.


www.codecollege.NET

Will the finally block get executed if an exception has not occurred ?


Yes.


www.codecollege.NET

What is an INSTEAD OF trigger ?


It is a trigger which is executed "INSTEAD OF" a TSQL statement. The main use of it is it enables views to support updates which are not updatable otherwise.


www.codecollege.NET

What is referential integrity ?


Referential integrity in a relational database concept where consistency is established through Primary key and Foreign key relationship.


www.codecollege.NET

What is a self join ?


It is a join which joins the table to itself.


www.codecollege.NET

What are the Differences between Response.Expires and Expires.Absolute ?


Expires:
The Expires property specifies the duration of time before a page that is cached on a browser expires.
ExpiresAbsolute:
The ExpiresAbsolute property specifies the date and time at which a page cached on a browser expires.


www.codecollege.NET

What is an Ad Hoc Query ?


It is a dynamically query generated by some query generation tools.


www.codecollege.NET

What are the contents of assembly?


A static assembly will generally contain,
1. The assembly manifest.
2. Type metadata.
3. MSIL code .
4. A set of resources.


www.codecollege.NET

What is role based security?


Role based Security is a feature using which access to data and resources will be given based on the roles the authenticated user has.


www.codecollege.NET

What is the use of the fixed statement in C# ?


It prevents the garbage collector from relocating a movable variable and is permitted on unsafe context.


www.codecollege.NET

What is BCL ?


The Base Class Library (BCL) is a standard library which is common to all languages using the .NET Framework.


www.codecollege.NET

What is an app.config ?


It is the Configuration file for Windows applications , simillar to Web.config is for Web Applications.


www.codecollege.NET

Daily Tips- Tip #24 - How will you set the Execution Timeout for a browser ?


The following code will set the executionTimeout as 40 mins,

<httpRuntime executionTimeout="00:40:00" />


www.codecollege.NET

How will you make a process wait ?


The following code will make the process wait for 10 seconds.
System.Threading.Thread.Sleep(1000);



www.codecollege.NET

Can "#Region #End Region " be created inside methods ?


No. Region can enclose methods and events , but they cant be created inside methods and events.


www.codecollege.NET

Name some of Code Analysis Tools ?


1. FxCop
2. StyleCop
3. NDepend
4. SourceMonitor


www.codecollege.NET

Daily Tips- Tip #26 - How will you analyze and improve the behaviour of your managed applications ?


You can analyze and improve the behaviour of your managed applications using the CLR Profiler tool.


www.codecollege.NET

Daily Tips- Tip #25 - How will you compare two versions of an assembly ?


You can compare two versions of an assembly, and determine the differences using the LibCheck tool.


www.codecollege.NET

Daily Tips- Tip #24 - How will you merge .NET Assemblies (without Aspnet_merge.exe) ? (or) What is ILMerge ?


You can merge multiple .NET assemblies into a single .NET assembly using the ILMerge utility . It works in the same way with both .exes and .dlls.


www.codecollege.NET

Daily Tips- Tip #23 - How will you merge Assemblies created by Aspnet_compiler.exe ?


The ASP.NET Merge tool (Aspnet_merge.exe) enables you to combine and manage assemblies which are created by Aspnet_compiler.exe. It works on assemblies that have been created by using ASP.NET version 2.0 or later.


www.codecollege.NET

What is an Immutable Class ? , give an example.


The object of the Class whose memory is changed upon change in the content is a Mutable Class.
Ex:
String


www.codecollege.NET

What is a Mutable Class ? , give an example.


The object of the Class whose memory is not changed upon change in the content is a Mutable Class.
Ex:
StringBuilder


www.codecollege.NET

Can you edit data in the Repeater control?


No.


www.codecollege.NET

Which two properties are on every validation control?


1. Controltovalidate
2. ErrorMessage



www.codecollege.NET

Can an Interface have a static method ?


No.


www.codecollege.NET

What are the DataConnections supported by MOSS 2007 Report Center?


The DataConnections supported by MOSS 2007 Report Center are :
1. Office Data Connection files (ODC)
2. Universal Data Connection files (UDC)
3. Reporting Services Data Sources (RSDS)


www.codecollege.NET

What namespace is responsible for remoting in Dot Net?

Tuesday, August 4, 2009


System.Runtime.Remoting



www.codecollege.NET

What are the three measures in common use in Quality?


1. MEAN
2. MEDIAN
3. MODE




www.codecollege.NET

How will you implement observer pattern in .NET?


Observer pattern can be implemented using “Delegates” and “Events”.



www.codecollege.NET

What are Design Patterns ?


Design Patterns are best proven techniques for a common design problem. It is only a design technique and not code. Though code is available for almost all design patterns in all popular languages, design patterns mean the design technique alone.Each design pattern explains a repeated problem, gives standard solution to the problem.


www.codecollege.NET

What are the different types of diagram in UML?


1. Use Case Diagram
2. Class Diagram
3. Interaction Diagrams
4. Activity Diagram
5. State Diagram
6. Physical Diagrams



www.codecollege.NET

What are the differences between ASP Session and ASP.NET Session?


Asp.net session supports cookie less session & it can span across multiple servers whereas these are not available in ASP sessions.



www.codecollege.NET

In Which mode alone Session_Abandon is supported ?


InProc mode.



www.codecollege.NET

After What event are Sessions available ?


AcquireRequestState event.



www.codecollege.NET

How will you customize columns in Data Grid?


You can customize columns ina DataGrid using the Template column.



www.codecollege.NET

How can we format data inside Data Grid?


We can do that by Using the DataFormatString property.



www.codecollege.NET

Can a trigger be fired from a stored procedure?


Yes.



www.codecollege.NET

Can a DataReader persist data ?


No.



www.codecollege.NET

Which is faster among DataSet and DataReader ? Why ?


DataReader is faster as it has only one record at a time, and Dataset is slower as it fetches the entire table or set of tables.



www.codecollege.NET

What's use of "DataView" ?


It is used for sorting and finding data with in DataTable. .



www.codecollege.NET

What is the name of the method which reverts changes made to the DataSet?


The Method which is called to save the changes in a DataSet is,
RejectChanges().



www.codecollege.NET

What is the name of the Method which is called to save the changes in a DataSet ?


The Method which is called to save the changes in a DataSet is,
AcceptChanges().



www.codecollege.NET

Can we have multiple threads in one App domain ?


Yes.



www.codecollege.NET

What are two different types of remote object creation mode in .NET ?


Object can be created using Remoting in two different ways , they are :
1. SAO (Server Activated Objects)
It is also called as Well-Known call mode. It is stateless.
2. CAO (Client Activated Objects)
It has state.



www.codecollege.NET

What is CAS ?


CAS(Code Access Security) belongs to .NET Security Model and determines whether a piece of code is allowed to run or not and if allowed to run then what resources it can access.



www.codecollege.NET

What are the steps followed by the Garbage Collector ?


1. Mark all the managed memory as garbage
2. Look for used memory blocks, and mark them as valid memory
3. Discard all unused memory blocks
4. Compact the heap



www.codecollege.NET

What is the error that is thrown while a method is written without a return type. ?


Not all code paths return a value.



www.codecollege.NET

Can we apply access modifiers to the methods of an interface?


No.



www.codecollege.NET

Can we define variables in interfaces?


No.



www.codecollege.NET

What is the use of ADO.NET Connection Pooling ?


The use of ADO.NET Connection Pooling is it reuses connections from a pool of Connections instead of establishing connection every time.





www.codecollege.NET

How will you enable ADO.NET MARS ?


You can enable MARS by setting the MultipleActiveResultSets attribute in the Connection String as follows,

"Server=localhost;Database=Northwind;" +
"Trusted_Connection=True;MultipleActiveResultSets=True";




www.codecollege.NET

what is MARS in ADO.NET ?


MARS(Multiple Active Result Sets) allows you to execute multiple queries or Stored Procedures with a single Connection.



www.codecollege.NET

On What situations Windows uses Kerberos in Integrated Windows Authentication ?

Monday, August 3, 2009


1. When the server and client are running over Windows 2000 or higher.
2. When an AD with Domain Controller which automatically acts as a key distribution center.


www.codecollege.NET

What are the two protocols used for trasmitting Authentication information in Integrated Windows Authentication ?


1. NTLM NT (LAN Manager).
2. Kerberos 5.


www.codecollege.NET

What are the disadvantages of Digest Authentication ?


1. It works only with IE5.0 or later.
2. Works only when the virtual directory under IIS is controlled by or authenticated by Windows Active Directory domain controller.


www.codecollege.NET

Can ASP.NET Membership API be used in Windows Forms ?


Yes.


www.codecollege.NET

What is the name of the method used to update users in ASP.NET Membership API ?


Membership.UpdateUser(cUser);
where cUser is the object of MembershipUser class.


www.codecollege.NET

Name any two Popular 3rd Party Tool developers for Microsoft Technologies ?


http://www.telerik.com
http://www.infragistics.com


www.codecollege.NET

How can you avoid SQL Server Cursors or What is the alternate for SQL Server Cursors ?

Saturday, August 1, 2009


You can avoid SQL Server Cursors using the following methods ,
1. Temprorary Table.
2. Comma Delimited values.


www.codecollege.NET

What is a SQL Server Replication and what are the Types ?


Replication is the process of copying or moving data between databases in the same server or external servers.
Types:
1. Sanpshot Replication
2. Transaction Replication
3. Merge Replication


www.codecollege.NET

What is a Multicast Delegate ?


It is a Delegate which points to and fires more than one method.


www.codecollege.NET

What is a Delegate?


It is a type safe function pointer. It can hold 1 or more methods in it. It is the base for The .NET Event Model.


www.codecollege.NET

What are the important extensions of LINQ ?

Friday, July 31, 2009


The following are the important extensions to LINQ:
1. LINQ to Object
2. LINQ to SQL
3. LINQ to XML
4. LINQ to DataSet


www.codecollege.NET

What is LINQ ?


LINQ (Language Integrated Query) is a set of language extensions using which you can perform query,set and tranform operations. It extends C# or VB.NET with syntax for queries and provides class libraries to use these features.


www.codecollege.NET

How will you stop a ASP.NET SQL Cache Dependency ?


SqlDependency.Stop(myconnectionstring); .


www.codecollege.NET

How will you start a ASP.NET SQL Cache Dependency ?


SqlDependency.Start(myconnectionstring); .


www.codecollege.NET

What is REPL ?


REPL is READ-EVAL-PRINT-LOOP.


www.codecollege.NET

What is DLR in .NET 4.0 ? or What is DLR?


DLR (Dynamic Language Runtime) allows any language to communicate with any other.
Ex:
Python and Ruby can communicate with C# and VB.NET


www.codecollege.NET

What is the use of dynamic keyword in C#.NET 4.0 ?


dynamic keyword .NET 4.0 is used as a data type. It is simillar to the var keyword in the sense it can hold any object type which is dynamically created.
Ex:
dynamic mycalc = GetCalculator();
int sum = mycalc.Subtract(900, 500);


www.codecollege.NET

What is the .NET 4.0 is mainly focusing on ?


.NET 4.0 mainly focuses on Dynamic Programming.


www.codecollege.NET

Are there any tools for Sharepoint BDC ?


BDC Meta Man is a Business Data Catalog tool .


www.codecollege.NET

What is BDC in Sharepoint ?


BDC(Business Data Catalog) is a new feature in MOSS 2007 which is a shared service. It is used to fetch data from back-ends without coding.


www.codecollege.NET

What is Reporting Center Dashboard in MOSS 2007 ?


They are used to tie the components of your Reporting Center in desired format for the user.


www.codecollege.NET

What is the feature in MOSS 2007 which is used to display Reports ?


The feature in MOSS 2007 which is used to display Reports is,
The Report Center Template.


www.codecollege.NET

What can be the Datasources for a KPI list?


The following can be used as Datasources for a KPI list:
1. SharePoint Lists
2. Excel Workbooks
3. SQL Server 2005 Analysis Services
4. Directly fed KPI data


www.codecollege.NET

What are the building blocks of Office System BI in MOSS?


There are 4 building blocks of Office System BI in MOSS, which are:
1. Excel Services
2. KPIs
3. Reporting Services
4. BDC


www.codecollege.NET

What are the types of ASP.NET Cache dependencies ?


ASP.NET includes 3 types of Cache dependencies, they are :
1. Dependencies on other cache items
2. Dependencies on files or folders
3. Dependencies on a database query


www.codecollege.NET

Daily Tips- Tip #22 - How will you avoid Concurrency conflicts ?


You can avoid Concurrency conflicts by match all or timestamp-based concurrency. That is when updating you need to check the current values with the db values.

Ex:
Update employee set empname=@ename, phone=@phone , salary=@salary
where empid=@orginalEmpid and designation=@orginalDesignation and managerid=@orginalmanagerid
.


www.codecollege.NET

Daily Tips- Tip #21 - An alternate to Javascript's document.getElementByid()?


You can use as an alternate to Javascript's document.getElementByid(), the following ASP.NET AJAX's method,
$get('nameofcontrol')
Ex:
var myctrl = $get('lblTotal')
.


www.codecollege.NET

How will you check whether a user is Authenticated or not ?


You can do that by the following method,
Request.IsAuthenticated();


www.codecollege.NET

Which Authentication strategy of Windows Authentication does not require user intervention ?


Integrated Windows Authentication does not require user intervention.


www.codecollege.NET

What Authentication strategy of Windows Authentication is supported by all browsers ?


Basic Authenticaion is supported by almost all browsers.


www.codecollege.NET

What is an Integrated Windows Authentication ?


It is a strategy in Windows Authentication where the user name and password are not sent as clear text. But a token of logged in user is sent.


www.codecollege.NET

What is a Digest Authentication ?


It is a strategy in Windows Authentication where the user name and password are not sent as clear text. But the information is sent using a Cryptographically secure hash.


www.codecollege.NET

LinkWithin

Blog Widget by LinkWithin

Recommended Books