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

LinkWithin

Blog Widget by LinkWithin

Recommended Books