Browse by Tags

Tagged Content List
  • Wiki Page: Test Article 100

    Test Article 011 111 asasfsafsaf asfasfasf afasfsa
  • Wiki Page: Test article122

    The C# language is intended to be a simple, modern, general-purpose, object-oriented programming language. The language, and implementations thereof, should provide support for software engineering principles such as strong type checking, array bounds checking , detection of attempts to use uninitialized...
  • Wiki Page: TEst article C# 123

    The C# language is intended to be a simple, modern, general-purpose, object-oriented programming language. The language, and implementations thereof, should provide support for software engineering principles such as strong type checking, array bounds checking , detection of attempts to use uninitialized...
  • Wiki Page: IEnumerable<T> Vs. IQueryable<T>

    I am sure most of you have seen the following interfaces when you write code with .NET Framework. IEnumerable IEnumerable<T> IQueryable IQueryable<T> Have you ever wondered what these really are. Let’s see the beauty of them and let’s have a dig into IEnumerable<T>...
  • Wiki Page: Forms Authentication with Multiple Login Pages

    Have you ever come across a situation where you want to have multiple login pages with Forms Authentication. Forms Authentication directly supports one login page, but there is a work around. Today we will see how to achieve this. For an example let’s say you want two login pages where one...
  • Wiki Page: SharePoint: Querying Active Directory from a Farm Based Solution using C#.Net

    Table of Contents Introduction Simple Example Webpart Example One Webpart Example Two Other Examples Get the PrincipalContext Get a Group Get a User Check if a User is a Member of a Group Get a List of all the Users in a Group Add or Remove a User from a Group Introduction If you are developing...
  • Wiki Page: Progress of a Task in C#

    By default Task doesn’t report its progress as a BackgroundWorker does. But that doesn’t mean we can’t get a progress of a Task. There is a new interface which was introduced with .NET framework 4.5 which is IProgress<T> . This interface exposes a Report(T) method, which the async task calls...
  • Wiki Page: Introduction to WCF Data Services

    Table of Contents Introduction OData(Open Data Protocol) WCF Data Service + oData Data Service Providers Introduction WCF Data Services (formerly known as ADO.NET Data Services and codename is “Astoria”) is a platform for what Microsoft calls Data Services. This is a component of the .NET...
  • Wiki Page: WCF Data Services with Entity Framework Provider

    This Article focuses on how we can implement a WCF Data Service with Entity Framework Provider. I have created an empty ASP.NET web application. Now let’s start by adding an ADO.NET Entity Data Model to the project. ADO.NET Entity Data Model Now I am...
  • Wiki Page: C#: PPT to PDF-Unable to Cast COM Object of Type 'Microsoft.Office.Interop.PowerPoint. ApplicationClass' to Interface Type 'Microsoft.Office.Interop.PowerPoint. _Application

    My team have been struggling with COM Component issue for about one week, it almost frustrated the developer, me and project manager. Uff.. after intense amount of googling and trial method, several time repair and installation of office, the problem was still bugging all the team members. Finally...
  • Wiki Page: VerticalLabel

    This is a custom control I wrote, first in VB.Net, but I converted it to C# as a learning exercise. I used the telerik ( http://converter.telerik.com/ ) online converter and then fixed the inevitable conversion errors with a little help from the IDE (Integrated Development Environment). The control...
  • Wiki Page: Get All Removal Drive in C#

    Here you can display and identify how many removal disk are available on your system var removableDrives = from d in System.IO.DriveInfo.GetDrives() where d.DriveType == DriveType.Removable select d; foreach (var item in removableDrives) { string name = item.Name; }
  • Wiki Page: Switch + C#

    1 - Introdução Irei realizar uma pequena explicação de como o comando switch funciona. Ele lida com várias condições, onde cada nó e verificado de cima até embaixo chegando ao último nó. Particularmente uma ótima estrutura visual quando há diversas condições para ser validada. 2 – Estrutura ...
  • Wiki Page: SharePoint 2010: Convert a SharePoint document name to a Friendly name that you can save

    Convert a SharePoint name to a Friendly name that you can save, returning max of 180 characters private static readonly Regex InvalidCharsRegex = new Regex(@ "[\*\?\|\\\t/:" "'<>#{}%~&]" , RegexOptions.Compiled); private static readonly...
  • Wiki Page: Visual C#: MultiThreadSingleton

    This article demonstrates how to make multi threaded singleton 01. public sealed class MultiThreadSingleton<T> where T : class 02. { 03. #region Private Fields 04. /// <summary> 05. /// 06. /// </summary> 07. private static volatile T...
  • Wiki Page: WPF Data, Item and Control Templates - Minimum Code, Maximum Awesomeness

    Table of Contents Introduction The Sample Project A Brief Explanation Introduction This article is going to highlight some of the awesomeness of WPF (and Silverlight) through XAML, INotifyPropertyChanged, Item Templates, Data Templates and Control Templates. The Sample Project ...
  • Wiki Page: Windows Store App with a SQLite Database

    In Windows Store Apps there are variety of ways/methods to store your application data. Examples of such mechanisms would be Web Storage , IndexedDB etc. and even SkyDrive. Today I am going to write about my favorite data storage method in developing Windows Store Apps which is “ SQLite ”. ...
  • Wiki Page: Set WCF Service Authentication to Use a Custom Username & Password over HTTP

    It’s a common requirement where you want to authenticate the requests which the clients will make to your WCF services. And let's say that’s using some data which you have in your user table. In WCF, the default, when a user name and password is used for authentication, is let Windows to validate...
  • Wiki Page: Using Two Interfaces with the Same Method Signature in One Class

    Let me give you a brief description about common scenario, let’s say you have two interfaces Interface1, Interface2, and both interfaces are having a method addNumber() with the same signature. Now let’s say you have to implement both interfaces in one class (e.g. Class1: Interface1, Interface2). The...
  • Wiki Page: C# Eseguire la somma dei dati di una colonna su foglio Excel da C#.(it-IT)

    A volte capita la necessità di dover eseguire dei calcoli con dei dati presi da altri file , in questo esempio vedremo come poter eseguire la somma dei dati di una colonna da un file excel. Prendiamo in considerazione questo esempio di codice. private void BtnCalcolaSommaClick(object sender...
  • Wiki Page: C# Eseguire una ricerca su foglio Excel da C#.(it-IT)

    A volte vi e la necessità di interagire attraverso la nostra applicazione con dei File Excel , lo scopo di questo esempio e dimostrare in che modo questo e possibile. Utilizzeremo AdoNet e precisamente il namespace OleDb utilizzato anche per la gestione di File MicrosoftAccess. Questo namespace...
  • Wiki Page: SharePoint: Uploading (and Resizing) Images to a SharePoint Picture Library via a Webpart

    Getting a file to upload to SharePoint is very easy; essentially it involves adding an asp:FileUpload control to your webpart and adding a button to click on (to upload the selected file!). In this example we're going to create a visual webpart that allows a user to upload an image to SharePoint...
  • Wiki Page: Get Marketplace link from inside your Application (Windows Phone)

    In order to dynamically create the link all we have to do is read the manifest file, get the "ProductID" attribute value, and then create the link with the expected format; with this data, we can write a class in C# such as this: Code to extract data from WMAppManifest.xml : Step1...
  • Wiki Page: Cómo: Crear dinámicamente una base de datos (LINQ to SQL) (es-ES)

    Basado en este articulo El código siguiente proporciona un ejemplo de cómo se crearía una nueva base de datos denominada MyDVDs.mdf. public class MyDVDs : DataContext { public Table<DVD> DVDs; public MyDVDs( string connection) : base (connection) { } } [Table...
  • Wiki Page: Operaciones CRUD (Create, read, update and delete) con Linq (es-ES)

    Basado en este articulo En LINQ to SQL, las operaciones Insert, Update y Delete se realizan agregando, cambiando y quitando objetos en el modelo de objetos. De forma predeterminada, LINQ to SQL convierte estas acciones a SQL y envía los cambios a la base de datos. LINQ to SQL proporciona...
Page 1 of 2 (38 items) 12
Can't find it? Write it!