Pages

Tuesday, June 18, 2013

ASP.net Questions Set

Manually Creating WCF Service

OOPS 
Abstraction:

Encapulation:

MISC:

http://www.wiziq.com/online-tests/26849-c-basic-test

What is HTTPHandlers
http://geekswithblogs.net//flanakin/articles/ModuleHandlerIntro.aspx

Implementing HTTPHandlers
http://www.developerfusion.com/article/4643/implementing-http-handlers-in-aspnet/
http://onlydifferencefaqs.blogspot.in/2012/08/difference-between-httphandler-and.html

Difference-between-WCF-and-Web-Services
http://www.codeproject.com/Articles/139787/What-s-the-Difference-between-WCF-and-Web-Services

WCF-Top-10-Interview-Questions
http://www.codeproject.com/Articles/426776/WCF-Top-10-Interview-Questions

Difference-between-BasicHttpBinding-and-WsHttpBinding
http://www.codeproject.com/Articles/36396/Difference-between-BasicHttpBinding-and-WsHttpBind

Difference-between- WCF 3.5 and 4.0
http://msdn.microsoft.com/en-us/library/ee354381.aspx
http://www.dotnetcurry.com/ShowArticle.aspx?ID=383

Merrill Lynch RAD using WF
http://www.wallstreetandtech.com/it-infrastructure/merrill-lynch-speeds-up-application-deve/207200852

Differences Between ASMX and WCF Services

Consideration When to Use BasicHttp and WsHttp
Create WCF services
Silverlight Questions
ASP.Net Breaking Changes
Fed Wire
Videos
LINQ
LAMBDA Understanding
Diff between Ienumerable & IEnumerator
AJAX

ASP.net page life cycle
http://www.google.com/url?q=http://www.codeproject.com/Articles/73728/ASP-NET-Application-and-Page-Life-Cycle&sa=U&ei=-js2UfzOE8np0gHCoYCADg&ved=0CBgQFjAA&usg=AFQjCNHfxVieKTyReIZTzTXiqIcEIoVSpQ

OOD
http://www.codeproject.com/Articles/93369/How-I-explained-OOD-to-my-wife

Design Patterns

http://www.codeproject.com/Articles/98598/How-I-explained-Design-Patterns-to-my-wife-Part-1
http://www.codeproject.com/Articles/28309/Design-pattern-FAQ-Part-1-Training#Whataredesignpatterns

Monday, March 26, 2012

How to check internet connection in Android


First In androidmanifest.xml file give the permission of internet given below. 
<uses-permission android:name="android.permission.INTERNET"></uses-permission> 
And Internet Connection code given below. This are simply create one Internetconnection() function. 


private boolean InternetConnection() {
ConnectivityManager conMgr = (ConnectivityManager) getSystemService (Context.CONNECTIVITY_SERVICE);
if (conMgr.getActiveNetworkInfo() != null
&& conMgr.getActiveNetworkInfo().isAvailable()
&& conMgr.getActiveNetworkInfo().isConnected()) {
return true;
} else {
Toast.makeText(getApplicationContext(),"Please check your Internet connection, You are now seeing the cached version.",Toast.LENGTH_LONG).show();
return false;
}

Monday, March 19, 2012

you must have internet and access_network_state permissions in androidmanifest.xml

You need to add below 2 lines into AndroidManifest.xml file


<uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.company"
          android:versionCode="1" android:versionName="1.0">
  <application android:icon="@drawable/icon" android:label="@string/app_name"
               android:debuggable="true">
    <activity android:label="@string/app_name" android:name="BannerExample">
      <intent-filter>
        <action android:name="android.intent.action.MAIN"/>
        <category android:name="android.intent.category.LAUNCHER"/>
      </intent-filter>
    </activity>
    <activity android:name="com.google.ads.AdActivity"
              android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
  </application>
  <uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</manifest>

Sunday, February 19, 2012

Power of Content Editor Webpart


The Content Editor Web Part (CEWP) allows you to add text, html, scripts or styles to a SharePoint page. Its versatility makes it a favorite among Web designers.
The fpweb.net site offers a tutorial on how to add a CEWP to a page:
http://www.fpweb.net/sharepoint-tutorials/ContentEditorWebPart.asp
The CEWP has two edit options:
- Rich Text Editor: as it says, allows you to add formatted text.
- Source Editor: this is a more powerful option, allowing you to add html, scripts or styles.
Note that the CEWP is not the only Web Part to allow you to add html to your pages. In some cases you may also consider the Form Web Part or the Page Viewer Web Part.
Looking for examples?
You’ll find on the Web many examples of how to use the CEWP. There’s even a whole site dedicated to it:
http://www.contenteditorwebpart.com/default.aspx
Many scripts were introduced for SharePoint 2003, usually they’ll also work in SharePoint 2007 (after all, they just use JavaScript). This is not the case for styles, as some ids and class names have changed from SharePoint 2003 to SharePoint 2007.
If you add scripts or styles, you’ll usually choose to hide the CEWP (check the “Hidden” box under Layout).
I came across a good video sample on youtube which adds a slideshow on SharePoint site using Javascript and Content Editor Web Part.

What is SharePoint?

When one says SharePoint there are Windows SharePoint Service(WSS), Microsoft SharePoint Server (MOSS) 2007,2010 and Microsoft Search Server.


Basically Microsoft SharePoint is a web application platform developed by Microsoft which is typically associated with web content management and document management systems.


Lets take a brief look at each of above.


Windows SharePoint Services (WSS or SPS) is a portal-based Web services on an intranet. WSS is a free download included with every Windows Server 2003 license and is considered to be part of the Office 2003 productivity suite. 


Read here for Several "Out of the box" features of WSS.

Microsoft's Office SharePoint Server 2007, or “MOSS” for short, is Microsoft's first integrated server platform that aims to provide web content management, enterprise content services, and enterprise search, as well as shared business processes and business intelligence dashboarding to the small/medium enterprise.

Like its predecessor SharePoint Portal Server (SPS) 2003/WSS 2.0, MOSS is fundamentally dedicated to unstructured document storage, structured list storage, and group collaboration. The word “share” has not been removed from the mission concept, which goes something like “connecting people, processes, and information.”

MOSS is built upon six most important pillars.

1. Collabration
2. Portal
3. Enterprise Search
4. Content Management
5. Business Process and Forms
6. Business Intelligence


-The basic MOSS/SharePoint wheel--






Microsoft's SharePoint marketing refers to the "SharePoint Wheel" to help describe the package of functionality built into the SharePoint platform. The wheel refers to six abstract functional capabilities:


Sites: The SharePoint platform fundamentally enables users to provision 'sites' (public or private) without a requirement for specialized knowledge. SharePoint is designed to become the central location for management of sites in an organization.
Communities: SharePoint aims to support the formation of communities within an organization - these communities may form around teams, projects, clients, geographic locations, etc. SharePoint also provides social features and social integration.


Content: SharePoint provides a central location to put content such as files, documents, or general information. This can be accessed and modified within a web browser or using a client application (typically Microsoft Office) via desktop or smartphone. SharePoint 2010 also provides a concurrent edit ability with Office 2010.


Search: SharePoint provides a range of search abilities, including in documents, in external content (such as network shares or public websites), and in user profiles.


Insights: SharePoint provides data integration, data crawling, and report design to enable business decision making. SharePoint can integrate with SQL Server Reporting Services to surface business intelligence.


Composites: SharePoint provides an application platform based on ASP.NET 3.5 allowing no-code development of complex business problems using SharePoint Designer. SharePoint also allows custom code to be developed using Microsoft Visual Studio 2010.

Saturday, February 18, 2012

What is a web part?

Web Parts are components that enable users to gather information they care about and customize the appearance of Web pages in MOSS environment. For example, visit Pageflakes website, where one Web Part might display a user's appointment calendar; another might create a graph showing current sales figures; and a third might show a list of new business topics, each of which functions as a link to a video or audio presentation. Developers can also create custom Web Part components and make them available to SharePoint users, for building customizable pages that meet their needs.







Wednesday, February 15, 2012

Saturday, October 29, 2011

12 hive folder structure in sharepoint 2007

Few things about 12 hive folder structure and how well it is mapped with the wsp schema.
SharePoint 2007 have a 12 hive structure which basically contains various files and folders that make SharePoint Interface. The files under 12 hive are mostly Uncustomized, that means they stay on the file system rather than in SharePoint database and perform better while rendering the Pages.

You would normally, deploy your Custom files like Custom Pages\layouts, webparts, css or javascript files under 12 hive, so that they can well interact with SharePoint site.

12 hive in SharePoint 2007 has various folders that make up a virtual path for the resources they contain. For e.g to access a CSS file deployed under styles folder we can use a path like
/_layouts/1033/styles/Customcss.css.

The most commonly used folders are :

\ISAPI\HELP\[LCID] - SharePoint help files. Deploy your own .chm files to this folder (or a localized subfolder)

\CONFIG - Web.config customizations

\ISAPI - SharePoint web services (deploy your custom web services here); this maps to /_vti_bin.

\Resources Global .resx - Files accessed from custom features and site definitions

\TEMPLATE\CONTROLTEMPLATES - deploy .ascx user controls here; maps to /_controltemplates

\TEMPLATE\FEATURES - Features contain folder and related file for each feature.

\TEMPLATE\LAYOUTS - Common site pages; maps to /_layouts

\TEMPLATE\IMAGES - Common site image files; maps to /_layouts/images

\TEMPLATE\SiteTemplates - All SharePoint site definitions; create a \xml to deploy your onet.xml custom site definition

\TEMPLATE\THEMES - All UI elements used in themes; clone an existing theme folder to create your own

\TEMPLATE\[LCID]\XML - Webtemp.xml files to define available site definitions; add an xml file here for your custom site definition

\TEMPLATE\ADMIN Pages - Used by Central Admin; maps to /_admin

\ADMISAPI Administration web services; maps to /_vti_adm

Now lets discuss the most commonly used Folder in SharePoint development.

TEMPLATE Folder - The most commonly used folder in 12 hive is the template folder or 12\TEMPLATE\. This is where developers deploy all of there custom files like Custom css, javascript file, Image file, Usercontrol, Custom aspx page, layouts page etc. etc.. These Custom files then run under SharePoint context and can well interact with Out-of-Box sharePoint components.

SharePoint 2007 Interview Questions for Administrators

What are the differences between web part page gallery, site gallery,Virtual server galleryand online gallery?

Ans: Web Part Page Gallery is the default gallery that comes installed with SharePoint. Site Gallery isspecific to one site. Virtual Server gallery is specific to that virtual server and online gallery aredownloadable web parts from Microsoft.


Q. What is the difference between a site and a web?

Ans: A site in sharePoint is a site collection. It is an object of SPsite class in sharepoint. While a Web is simply a blank site within that site collection. Web is a Part of SPweb class, thus represents a site within a site collection.


Q. When to use Diffrent Site Collections?

Ans. An Individual Site collection offers following :

For the Users:

Dedicated Recycle bins
Dedicated usage Reports
Distributed administration (site collection administrators)
Dedicated search scopes, keywords, and best-bets
Custom feature deployments
Dedicated language translation maintenance
Dedicated galleries for web parts, master pages, content types, site columns, site templates, and list templates
Dedicated shared libraries, such as site collection images and site collection styles
Dedicated real estate (Self Containment)

For the IT Administrators:

Site quota templates
Distributed administration
Site locking
Database maintenance options
Backup / Restore abilities
Content Deployments
InfoPath forms services global template targeting


Q. why to use different site collections

1. Site quotas is one of the reasons. The issue is the recycle bin is based on site collections and the quota for a site collection. If everyone shares a site collection, then they share the recycle bins storage size.

2. Delegated Security and distributed administration is the next big thing. For eg, you have a IT department that doesn't know who should be able to see what content, besides how it should be organized. This is the job of the content owners and users. SharePoint site collections offers IT the ability to create a site collection for a project, team, department, document, or whatever the needs are, then assign an owner and hand it off to them.

3. In addition to these two points is the need to separate the content between databases.


Q. What is Authentication and Authorization.

Ans : An authentication system is how you identify yourself to the . The goal behind an authentication system is to verify that the user is actually who they say they are.

Once the system knows who the user is through authentication, authorization is how the system decides what the user can do.


Q. What are Security methods(Authentication methods) available in sharepoint 2007.

Ans : Out of the box", SharePoint 2007 supports nine authentication methods. NTLM (short for NT Lan Manager, which is simply the Windows authentication that everyone is familiar with) and Kerberos (also a Windows "standard" authentication) are offered during installation, but I recommend to get started with NTLM, as Kerberos requires "special configuration by the domain administrator", while NTLM works without further hassle.



Q. Can you name some of the tools used for SharePoint Administration?

Ans. Some of the tools Used for SharePoint Administration are

* Axceler's ControlPoint (Version : ContolPoint 3.5 )

Description : ControlPoint 3.5 helps enterprises adopt and embrace microsoft sharepoint more than ever before. ControlPoint 3.5 boasts powerful new capabilities that give enterprises more control over their configuration and deployment of SharePoint while strengthening their SharePoint security.

* DocAve (Latest Version : DocAve Software Platform v5.3)

Description : DocAve Software Platform v5.3, is considered the industry's most comprehensive software solution for SharePoint backup and recovery, administration, archiving, auditing, replication, reporting, compliance, and migration.

* Nintex Workflow(USed for Workflow )

Description : Nintex Workflow 2007 enables organizations to build complex workflow processes quickly and easily using a web browser interface. Nintex Workflow 2007 empowers users across the organization to automate business processes, review workflow activities and automate common SharePoint administrative tasks.


Q. Can a web application use few shared services like search,audience from ssp?

Ans. No, it has to use all the shared services in that SSP.