Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / .NET / .NET4

.NET4

.NET4

Great Reads

by Anurag Prajesh
Add new user registeration information in XML with C#
by Nirosh
This tutorial is designed for .NET programmers who need to understand ‘Nido’ framework and its application.
by Suresh Dasari's
Auto Generate Code (CRUD) for 3 Layered architecture (Entity, Data Access & Business Layer) with Stored Procedures based on table design.
by Necmettin Demir
"How to series" about MVC, jQuery, JSON, paging, mapRoute.

Latest Articles

by Anurag Prajesh
Add new user registeration information in XML with C#
by Nirosh
This tutorial is designed for .NET programmers who need to understand ‘Nido’ framework and its application.
by Suresh Dasari's
Auto Generate Code (CRUD) for 3 Layered architecture (Entity, Data Access & Business Layer) with Stored Procedures based on table design.
by Necmettin Demir
"How to series" about MVC, jQuery, JSON, paging, mapRoute.

All Articles

Sort by Score

.NET4 

by Anurag Prajesh
Add new user registeration information in XML with C#
by Suresh Dasari's
Auto Generate Code (CRUD) for 3 Layered architecture (Entity, Data Access & Business Layer) with Stored Procedures based on table design.
by Sarang Date
Any string input can have these many possible states1) String is null2) String is empty3) String contains nothing but white space4) String has some contentTill now, .NET had static method for stringbool string.IsNullOrEmpty()which handled first two conditions for...
by jfriedman
public static class StringExtensions { public static bool IsNullOrWhitespace(this string s) { if (null == s) return true; return string.IsNullOrEmpty(s.Trim()); } }
by Yaseer Mumtaz
.NET interview questions and answers with real world examples and code snippets
by emadns
A basic tutorial for ReportMax tool
by emadns
Using the Chart control in ReportMax
by Nikita D. Sinelnikov
HowTo: make the report background (elements) of Microsoft .NET Report (.rdlc) non-printable
by JatinKhimani
Develop a web application in 3 layer architecture code style
by Sambhav Yadav - Sam D Silva
ASP.NET page/master page/user control's life cycle from the perspective of Session and View State
by S. M. Ahasan Habib
I will demonstrate a generic factory method which will create object from interface type parameter from an assembly (either current or provided) with the help of reflection
by PEtter Ekrann, Martin Helgesen
A strange idea I had for doing multithreading more managable.
by Marlon Hizole
An elegant approach to pagination
by scott_liu
By use of a cutomized metadata provider, MVC model data annotation validation messages can be localized in a simple and elegant way.
by bluecurve01
How to parse robots.txt and robots meta tag
by LLLLGGGG
A really simple implementation of a C# menu for console applications
by Alessandro Lentini
This tip is connected to my previous one. I show how to use .NET 4.0 BlockingCollection in a simple way.
by nilotpalbarpujari
VS 2010 style toolbox written in C#
by Mario Vernari
Here is a simple trick for simulating the shared-sizing feature of the WPF Grid even in a StackPanel fashion.
by V R Shukla
How to access Active Director users on a WinNT network and show them in a dropdown list.
by Subodh Raikar
Accessing SSRS Reports from SharePoint Site using C#
by gunjan k saxena
This tip will help to create an action filter to compress the contents like Json, partial view, etc.
by Vipin_Arora
Adapter Design Pattern in C#
by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Ever wondered how to add HTML file contents to the aspx page by code. Take a look at the implementation.
by Purushotham Agaraharam
Setup file creation and adding a connection string custom control.
by MarkLTX
Automatically implement INotifyPropertyChanged for every property in Entity Framework 6.0 entity classes
by Ankit Bansal MVP
This articles explains the insertion of data into SQL Database using Stored Procedures with Output Parameters. Some Bootstrapping is also used to create a good looking HTML.
by BradodarB
Simple example outlining how to optionally employ AHAH based views in an MVC application.
by HiDensity
Class providing methods to count up a string using a definable character set.
by Gianmaria Gregori
How to add a random sliding effect to the Bakery home page
by Mukund Thakker
Android GCM Push Notification
by Yossi Yaari
A basic yet generic state machine implementation
by Vasudevan Deepak Kumar
This is a simple class/demo application that shows how to check whether the account that is being used to run the application has administrative rights.
by Steffen Ploetz
Compare the speed of generic collections running on .NET Framework 4.6.1, .NET Core 2.1 and Mono/.NET 4.5 based on the framework's version of List against Loys's version of AList.
by Alaa Ben Fatma
Generate your arrays using a GUI tool
by AlexCode
Adding support for IHttpHandler on ASP.NET Routing
by AlexCode
Hi guys, I have a new version of this.Although it works as expected for the majority of cases, I found a problem on the previous version of this code, that is, it reuses the HttpHandler for different requests and that can be a problem on more complex implementations where inner properties are...
by Anurag Prajesh
How to add banner and slideshow in your website with adrotator
by Ruhollah Heidarpour
Just another ASP.NET Persian(Jalali/Shamsi/Solar) / Gregorian Datepicker
by BalaG Ganesan
ASP.NET MVC4 - Bundling and Minification
by TheCoolCoder
Numbering for Multilevel ASP.Net Treeview using CSS Counters
by nasir_ml
ASP.NET textbox validation made easy.
by Akhil Mittal
Helper class to compare two class objects while unit testing
by Francesco Bagnasco
Just a quick sample to clarify what we can do and what we can't
by arpanmukherjee1
RelayCommand.CanExecute in MVVM with attributes not WPF Requery
by Eduardo Yost
Creating a Web User Control containing an AutoCompleteExtender for data through WCF (JSON) allowing to store the entity selected through EntityFramework. Entity object serialization from the server to the client and the client to the server.
by Emiliano El Mariachi
Here is a small library to help you have an automatic undo/redo feature without explicit dependency on Undo/Redo system.
by veen_rp
Big lists (>1,000,000 items) can cause out-of-memory errors raised by .NET. Manage them by a List of List(Of T)
by Jason Curl
Using System.IO.Stream default implementation of BeginRead() and BeginWrite() may result in unexpected deadlocks.
by Hernán Hegykozi
This tip will show how to perform a backup and restore database from an application in VB.NET 2010.
by Saddoud Anis
Allow your applications the ability to backup and restore your PostgreSQL databases.
by Jdarmanovich
Basic MVVM pattern for binding items to a listbox in WPF
by Kundan Singh Chouhan
Simplest, best and most robust architecture.
by saurav ray
Article determines how to bind a crystal report with a virtual database
by Amit_Mittal
An easy way to bind XAML with properties defined in code behind
by Houssem_Dellai
Using Bing Maps in Windows Phone 7
by RobLazarus
This books is a tour de force and a must-have for any ASP.NET MVC developer as it will save you hours of time and frustration researching solutions to the various questions you may encounter when using MVC 4.
by Oleksandr Kulchytskyi
This tip explains how to increase performance in serialization by using MessagePack
by Jitendra Ballia
Building data access layer using enterprise library
by deepi2014
This tip is to showcase how to write “Native C Library” so that it can be used for Cross Platform with .NET interoperability with Native C Libraries.
by charles922
Program that continuously monitors the NXT via Bluetooth
by Rakesh Vemula
A Windows application which processes your code and shows how much time it takes to execute your code.
by dibley1973
A simple C# extension method to convert List into a delimited text string. Ideal for creating CSV files!
by Maddog Mike B
A message server using named pipes and the Async CTP library (async and await keywords)
by caed
C# - Read Text File, Match a Word in First Line, Move File if Word Matches
by metastruct
When WebClient, HttpRequest, and all else fail, BITSadmin solves your download woes
by deepi2014
An attempt to taking up an existing published article “C#.NET Interoperability with Native C Libraries on Cross Platform” towards the next level.
by InActive
How to use the .NET DateTime class in C++ to generate a basic calendar via a console program
by Michele Ziparo
An effective way to implement a caching system in Silverlight (MVVM) RIA
by Houssem Dellai
Developing a Windows Phone app step by step
by David Thielen
Calling a J# DLL from .NET 4.0
by SibeeshKV
Calling an ASMX webservice from other server using jquery and PHP
by jayant jaiswal
Captcha code
by Kaveh Yazdi Nezhad
A simple solution to capture entire HTML code of a web page which is displaying on Internet Explorer
by Madhav Hatwalne
Caution when you are disabling a checkbox in Edit View
by Sitang Ruan
Central jQuery Version Control
by Kees van Spelde
How to change resolution before starting an application
by Manfred Rudolf Bihy
Using SendMessage and the PARAFORMAT structure, one can easily change the line spacing in a RichTextBox control
by Purushotham Agaraharam
Dynamic changing of version number using SolutionInfo.cs through out the application.
by Trilok Arora
Introduction to Charts in .NET 4
by SergVoloshyn
Main program for testing modem or GSM phones by AT commands, use only standard classes and libraries.
by Ordiales
Create default interface implementation or whatever you want with runtime checking not implemented members
by jelo pasiolan
This class is useful for HTTP web request and gets the response from the server. If the response is JSON or XML, this class also contains a method to parse or deserialize the response.
by Narendra Singh Rathore
How to clear all textbox text on one click
by sumit_kapadia
Create and Bind gridview at client side with Jquery Template and ajax in asp.net
by markmnl
Method to clone an EntityObject without serilization or detaching it
by Raju_B
Code behind JavaScript
by Matus Kovacik
This component allows to overlay grid with colored blocks spanning across multiple columns.
by B.O.B.
A simple extension to add an item that has a data source bound to combobox.items
by Physlcu$
A custom ComboBox that supports live filtering of items by Substring-Search or any other Lamda-Expression
by omid rezaei hanjani
Customized implementation of the Singleton pattern using Generics.
by Paulo Zemek
All classes are naturally Lazy loaded.So a better implementation will be:public class Singletonwhere T: new(){ public static readonly T Instance = new T();}You will notice that before calling the singleton class, the object will not be loaded.Surely there are...
by Arthur Peka
A tutorial to compare .NET objects
by Abhishek Sur
It is to be noted, .NET has lately introducedResponse.RedirectParmanent() after a long await. The main motive of this is tohave permanent response redirection to the Search Engines.Response.RedirectParmanent() is an extension function introduced in .NET 4.0.Themain motive of it is to indicate
by KK Kod
How to compress JavaScript and CSS files in a web application to reduce page loading time, using GZIP.
by Kishan Zunjare
Configure email providers like SMTP/GMail using Dependency Injection.
by Shivarajbk
This tip explains how to write RESTFUL WCF service for Android applications.
by Tyronne Thomas
Connecting to a C# socket with a timeout.
by Surya Kiran Bonugu
Client Web Application which consumes OAUTH enabled restful WCF service using JavaScript
by Faisal(mfrony)
Understand why we need Contravariance in C#.
by Anshul R
The Perfect Translation/Conversion of Code
by Sibeesh Passion
Convert CellSet to HTML Table, and from HTML to Json, Array
by Sibeesh KV
Convert CellSet to HTML table
by El_Codero
Convert doc/docx documents to pdf with Foxit Reader Printer. Works without use of Word Interop/SharePoint.
by jonx
Very good stuff. Learned me a lot about how to access to the physical structure of the query.There is also a CopyToDataTable : http://msdn.microsoft.com/en-us/library/bb386921.aspx[^]And for the record here is a C# version:protected DataTable EntityToDatatable(IQueryable Result,...
by Sibeesh Passion
Convert Microsoft ADOMD Cell Set to JSON
by Shibasis Sengupta
This tip describes how to convert your personal laptop into a webserver available on world wide web
by GPUToaster™
Converting VS2010 Solution to VS2008
by Anshul R
Instead, you can create a new project in VS2008 and add the source code files to it.
by Mehdi Gholam
Another very simple way is to use SharpDevelop which will downgrade/upgrade and sidegrade (change between .NET versions).
by thatraja
I found this utility in sourceforge.DescriptionCVSVC is Windows utility for converting between Visual Studio 2010 Forms Project to 2008 version İts supports only Visual Studio 2010Visual Studio Converter 2010 to 2008[^]
by Klaus Luedenscheidt
alternatively you can use the SolutionConverter here from code project. The tool converts 2008 to 2010 and vice versa. The only limitation is that it don't support C++ projects.
by Thava Rajan
Copy and insert data at any postion in your datagridview
by Tyronne Thomas
CPU usage with C#.
by Kirankumar Chauhan
Global Resorce File Creation in json Format using ASP.NET
by saurabh sri
Basic steps to create ASP.NET WebApi services.
by Er. Mayank Kothari
Generate barcode image in web application
by Gold$Coin
This tip will help you to create a collection from a DataSet
by Aadhar Joshi
Creating job in sql server which automates taking backup of all stored procedures and functions in physical drive.
by khanqamarali
Get/set property by right clicking on .NET IDE.
by User 8388951
In this tip, we are going to create an activity that can send an e-mail message to a target user.
by Abhijit Ghosh (Subho)
Creating a Issue in Jira using Rest API and Microsoft XML Core Services (MSXML)
by Sujith Karivelil
Creating a link in the left pane of the file Explorer - like OneDrive or DropBox
by Mohit Johri
This tip will help you to display data using XamDataPresenter (or any DataGrid) which will have multi-header column.
by Melih Mucuk
Creating a WCF Service with JSON data for use on iOS
by Abhijit Ghosh (Subho)
This is an alternative for "Creating a Issue in Jira using Rest API". This is an upgraded version as it contains a way of sending attachments with the issue. This version doesn't use MSXML as it is not recommended by Microsoft.
by Carlos Conceição
This article how you can use TextToCalcExpression to generate Linq Expressions in runtime
by D Sarthi Maheshwari
A suggested solution to create Partition based Dictionary (reducing chances of OOM errors and adding capability to hold bigger KVP set in Dictionary).
by HUONG Minh-Luong
How to use PresentationMapper to generate presentation objects
by Indresh_Prajapati
This tip will help beginners to implement CRUD operations in ASP.NET MVC 4 with scripting language as KnockOut and Database as MS SQL 2008R2.
by Nirav Prabtani
CTE Query for optimizing complexity of query in sql server
by Anushan Tennakoon
In this article I am going to explain an approach of implementing custom pagination for an ASP.NET MVC application.
by HardikPatel.SE
Paging using AJAX
by HardikPatel.SE
Paging and Sorting with AJAX
by tumbledDown2earth
Using dynamic or ExpandoObject is a breeze to dynamic data WebAPIs, but when serializing to XML, it can cause a brain damage sometimes :)
by Opata Chibueze
This tip demonstrates how to wrap text in WPF - similar to using &shy or <wbr. in html
by Monotosh Roy Mon
XML Serialization & Deserialization for converting our object to XML and XML to Object
by Yugal Pandya
Database driven N-Level Dynamic Menu Control using C#.NET and SQL Server with stylesheet CSS
by Muhammad Ahmed Azam
"Database Driven Dynamic Menu Control"
by mohammad amiri
this tip discuss about showing datagridview data to crystal report using c#
by Jaume González
How to convert any datareader into generic list.
by Venkatesh Mookkan
If you have different DateTime pattern (especially separator) in the locale
by pramod.hegde
Delete all directories with a specific name inside a root directory
by Valer BOCAN
World's first Forth compiler for the .NET platform
by BillWoodruff
An interesting change in behavior in VS 2010 Pro ?
by Brian Risley
How to do transaction scope exception handling.
by TnTinMn
UpdateDefaultButton - Allows detecting change in ActiveControl
by Leri Buiglishvili
Little and programmer-friendly library for device recognition for mvc 4 web apps.
by Snesh Prajapati
Difference between attr() and val() in jQuery
by AnthonyMG
WPF ComboBoxItem disabling
by jkirkerx
Basically a slideshow script, but more simple in design and easier to deploy.
by Sonali Agarwal
Here I am showing the local time in various timezones in the world
by Daniel Nguyen Vinh
The iTextSharp API is a powerful Open Source tool for creating PDF documents on the fly; it has the ability to generate multilingual PDF but it does not come with the default setting. In order to display Unicode characters such as Vietnamese, please follow our post
by Andrew Admire
Generates an NTLM character set, 1 to any max you set.
by sarvesh.upadhyay
Dotnet Simple Rule Engine
by Sujith Karivelil
This article Describes Connectivity to Gmail using IMAP, and also guide you to download and save mail content along with attachment.
by JO Hyeong-Ryeol
Introduces the DragSource class in the Nicenis project.
by Fernando Callejon
Did you ever dreamed about compiling a string like "x => x.Property.Array[3].Property" and actually get a value from it?
by Thomas Corey
Dynamically sort query results using LINQ expressions and reflection.
by Thomas Corey
Dynamically sort query results using LINQ expressions and reflection with sorting and paging using VB.NET.
by Thomas Corey
Dynamically sort query results using LINQ expressions and reflection with sorting
by Thomas Corey
Dynamically sort query results using LINQ expressions and reflection with sorting and paging.
by oryan
Dynamically build Linq2Sql classes based off SQL table
by Randy Kroeger
Created a POC that dynamically builds a predicate using Expression and Reflection.
by Narendra Singh Rathore
Here, we are getting all/filtered images from our directory to our .aspx page
by Robert Bettinelli
Easy JSON Recursion in VB.NET with nested levels
by Prince Tegaton
This entails how to easily add mobile website feature to your ASP.NET website/app
by StormyDev
Simple and clean-cut label that user can edit text of during run-time (by double-clicking) which I wrote because the examples I found were either obsolete or added clutter to the interface.
by cjb110
How to configure columns of abstract entities.
by Amin Esmaeily
This trick is about how to effectively reduce reserved memory by process.
by Youqi Ma
Using a controller to manage dynamic control form events and creation.
by Miller Nguyen
This article will show you how to implement a complete solution of electronic signature by using HTML5 canvas in ASP.NET (VB).
by Kishan Zunjare
Configure different email provider sources using the Provider design pattern
by Robin Rodricks
Learn how to integrate the CefSharp open-source web browser into a C# WinForms app
by kennysun
encrypt all stored procedures in SQL server with powershell
by Arvind Singh Baghel
I am writing code to encrypt password in connection string in config file and decrypt password while getting connection from config file.
by Preetam U Ramdhave
How to develop connection string encryption on the application config file.
by VICK
Focuses on beginner's level Encryption
by Brady Kelly
A quick and easy way to ensure that your Code First DB Initializer is always run when your app starts, not just on the first data access operation
by Abhay@Accenture
Performance tuning using SqlBulkCopy
by Christopher R Davis
Use model driven development with a MySql backend
by Sherjil_Ahmed
Mixing DB-First and Code First Approach for using SPs in EF-Way
by Debopam Pal
How to bring data from Entity model to Excel file using LINQ.
by onelopez
If enums' could be used OOP style.
by Nandakishore G N
Simple example of using JavaScript Serializer in webmethod and consuming in client side using jquery
by Nandakishore G N
Example of enabling loader image on button click and (closing or disabling) from code-behind
by ArindamSarkar
Tips and tricks to quickly find out how to manipulate Excel using .NET Managed Code
by Anthony Daly
A simple library for dealing with unhandled exceptions, with email support.
by Sridhar Pasham
Export and import database using SMO
by Michael Gledhill
Easy-to-use library, to export the data from your jqGrid into a real Excel file.
by JatinKhimani
Export Gridview data in Excel formate with gridview design.
by hawk3434
A class to export the data from the DevExpress dashboard viewer object
by Yuriy Anisimov
Expressmapper - lightweight, lighting fast and easy to use .NET mapper
by Kees van Spelde
How to extract embedded files from Microsoft Office documents
by Peter Boyall
Quick routine to extract keys from FederationMetaData.xml
by a_pess
Demonstrates how to retrieve resources from a .NET Assembly in Visual Basic .NET
by Rajesh Londhe
Face alignment rotation to improve face recognization
by pavan1361
adding require blocking site in hosts file
by Vipin_Arora
This tip is about how to implement factory design pattern
by ZamirF
Can we simplify it by: (This essentially passes only two numbers). public int GCD(int value1, int value2){ int max = 0; bool gcdFound = false; int counter = 1; //Make sure both numbers are atleast 2 or above if (( value1 <= 1 ) || (value2 <= 1)) return...
by jfriedman
/// /// Find the Greatest Common Divisor /// /// Number a /// Number b /// The greatest common Divisor public static long GCD(long a, long b) ...
by Mauro Leggieri
It is better to do this:public static long LCM(long a, long b){ return (a / GCD(a,b)) * b;}To avoid overflow on big numbers.
by DrABELL
Serial and Parallel implementation of efficient Prime Factoriing algorithms
by Ajay Bachale
MVC3 Role base security.
by Venkat Krishna Turlapati
Powershell script to copy files greater than certain date
by Vahid_N
It's easy to forget not disposing object contexts, which leads to memory leaks and also leaves too many related connection objects not disposed as well.
by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Want to select the GridViewRow without Select button showing on the row. Just follow the steps mentioned in the tip.
by Vahid_N
Microsoft has not updated Iran's daylight saving time information since 2009. Let's find out how it works and then fix it for the next 100 years!
by Muhammad Aqib Shehzad
Forgot Password and Email Check from Database
by saurabhsharmacs
If using Identity framework is not possible, one can add the old school forms authentication method.
by SubhamoyBurman
Use of Task Parallel Library and Async/Await in your application
by epicTurk
F# Quotations support for ViewModelSupport.ViewModelBase Property get\set Accessors
by Amal Nanda
Fun with F#F# (pronounced "F sharp") is a functional programming language for the .NET Framework that combines the succinct, expressive, and compositional style of functional programming with the runtime, libraries, interoperability, and object model of .NET, that lets users concentrate on...
by Oleksandr Kulchytskyi
Boost up your serialization in ASP.NET Web API.
by Steven.Pinto2000
Get GCD
by DrABELL
Hello Steven,As FYI: recently I have published on CodeProject a short article (tip) on rather efficient implementation of GCD/LCM based on Euclid algorithm. They use iteration instead of recursion, because re-cursive algorithms in general and in this particular case are relatively...
by Harry Panesar
Generating Many to Many Relation in MVC4 using Entity Framework
by Bankey Sharma
Converting DataReader Result into List of Objects Using Generic Type, Property Attribute and Reflection
by vijay__p
How to perform CRUD operations using generic repository with EF pattern with and dependency injection.
by Shamas Imran, Muhammad N@beel
Convert Coordinate data to strings to be stored in database.
by SoumenBanerjee
Get page HTML using System.Net.WebClient class of .NET as well as striping HTML using Regex and export a list into Excel or XML.
by Gehan Fernando
Custom glass message box for WinForms development.
by Tkach Aleksey
WPF Gmail-style emails input control using C#, with email validation
by LM Heah
Google BigQuery API Client Example Code for C#.NET
by suis
Integrating Google direction and geocoding services using C#. NET code behind.
by Narendra Singh Rathore
Styling Gridview Pager in ASP.NET using CSS .
by Sujith Karivelil
This article will help you to create, update and delete events/ appointment in google calendar from your web application.
by Hasan Habib Surzo
Basic Server/Client Example using Windows Communication Foundation (WCF) programming
by atlaste
How to fix hiding controls in the Visual Studio user control designer
by the retired
High performance C# byte array to hex string to byte array.
by Milad Ashrafi
We need this script for database based ASP.NET websites for using HTML content in post pages.
by Abhay@Accenture
How to bind Derived Type in MVC View
by marks-mike
Demonstrates how to cascade delete on a single table that maintains hierarchy by a ParentId that points to the primary key of the same table
by Mukund Thakker
In this post, we will see how we can convert date time in "X Time ago" format in C#.
by Manish_Kaushal
This tip provides a quick starter guide to create a RESTful JSON service in WCF.
by Mike Meinz
Source code to demonstrate the creation of a new task in Windows Task Scheduler.
by Kim Syversen
This article will show you how to create a WCF Service self hosted application.
by Dread_Sharp
How to build an easy plugin system with C# which only takes about 30 lines of code!
by fernando albernaz
How to do a polymorphic association like Rails using Entity Framework
by dapeacenforcement
Easy way to edit the right ListViewItem (Row/Column) after MouseDoubleClick.
by Abhay@Accenture
Get an extension attribute from AD using Principal Extensions in System.DirectoryServices.AccountManagement
by Dnyaneshwar Kondbale
Get ClientID of User control which is register on Page In JavaScript.
by Ankur .K. Vishwakarma
This tip shows you a T/SQL function to split a string concatenated by a delimiter.
by Leo Dungca
A simple tip on how to implement a custom IPrincipal in ASP.NET MVC 4 template project with WebMatrix.WebSecurity and OAuthWebSecurity.
by karimbaig5
This tip provides an idea about how to insert a record into a table having no primary key using LINQ to SQL.
by dpalash
This is meant for easy integration of CKEditor with ASP.NET
by AdamNThompson
A reusable component for makeing REST service requests using C#
by Albin Abel
Performing arithmetic operations between objects need to define overloaded operators and restricted to defined types in those method. This code provides an alternate flexible way.
by Chris Trelawny-Ross
You got me thinking about other ways to accomplish "objects that are not numbers honoring math operators without implementing the operators on the objects."I'm too long in the tooth of strongly typed languages to have a good comfort level with all things dynamic (although reading about the...
by HUONG Minh-Luong
This tip is a tutorial that explains how to use PresentationRequestor Nuget package.
by TheKarateKid
Shows how to restrict and format the dates on Microsoft AJAX Calendar Extender...
by EuGenius_Krivbass
Today I was trying to save list of entities those were generated by DBMLThis code shows how you can store your list in XML string and put it in ViewState, after that you get your list back.Using the CodeYou can use this code as you need.Here is class Serializatorpublic class...
by Rohan Kishor Garud
RoundhousE (RH) is a database migrations engine that uses plain old SQL Scripts to transition a database from one version to another.
by Rolando CC
Shows how to sign a string using a PFX certificate to create a CMS/PCKS#7 signed data. Also, shows how to take the signed data and compare with the original text to check sigh validity.
by Verma Neeru
Difference between Page_Load and OnLoad event
by TheKarateKid
Shows how to use simple ASPX page to return JSON or XML response
by Venkat Krishna Turlapati
How to use cross apply along with a table valued function as an alternative to cursors
by Kees van Spelde
To encrypt or not to encrypt with C# .NET
by Muhammad Taqi Hassan Bukhari
Validate Fileupload using server side custom Validation
by Bojjaiah
Single Stored Procedure for delete/retrieve all table of records
by BenScharbach
How-To Convert a String Collection to a Multi-Enum item using TryParse
by Rajesh Buddaraju
A simplified example is used to describe the state pattern
by VaibhavTiparadi
Re-sizing images to equalize the width & height
by Sachin Dev Tripathi
Validating MVC fields at by ajax call on controller without posting form data.
by JO Hyeong-Ryeol
An introduction to the WatchableObject that is a base class to implement the INotifyPropertyChanged interface.
by Thorvaldur Arnarson
Abstract class inheritance inversion where in the base class calls the inheriting class.
by Fabrizio Stellato
Run ngen to optimize your application during the installation process
by Rajendra D. Patel
How to insert data using stored procedure in ASP.NET
by dpalash
A simple way to import data from csv file to database
by Debopam Pal
Export Advanced Excel 2007 Report
by ely_bob
Installing Windows Identity Framework
by submit@perpetuumsoft.com
In this post, we will talk about the wonderful Font class.
by Santhakumar Munuswamy @ Chennai
This tip explains WCF and helps understand the difference between WCF and Web Services.
by saephoed
A generic approach to aggregate return values of multicast functions.
by dietmar paul schoder
How to get the location of a specific IP-address
by Silvercorer
JavaScript validation for textbox special character selection
by Dinand.dotnet
How to easily run a function in C# from the view using ajax/jquery
by ArindamSarkar
How to add dropdown inside Editable Kendo Grid
by Peter Silling
Lambda expressions were introduced in Java 8, and the concept is little bit different than in C#. We'll go through how these things are implemented in C# and in Java.
by Alexandros Pappas
Windows Service that launches UI app
by Ashwin. Shetty
Lazy loading object in DI using Castle Windsor & System.Lazy
by maz2331
License Key class to make generating and validating keys easy.
by dgDavidGreene
Helper utility replaces magic string property names.
by dirigo
Preventing a log file from growing forever
by maximaximum
The article describes how to draw a grid of vertical and horizontal lines in WPF.
by d.ban
A LINQ tutorial for beginners.
by Erol Esen
This tip is about modifying the ingredient quantities of a recipe using LINQ.
by |\/|ax
Localization by Build
by Member 551133
How to add, and update an existing, entry on MailChimp list, using API V3. Optionally, you can add to one or more groups easily. Written in VB.NET, but could be easily converted to C#
by MarcusCole6833
A simple program to make an HTML page from an XML file
by Omar Rwemi
An interesting way of making Disposable (Heavy) objects
by MarcusCole6833
A basic Game of Yahtzee
by Rajita R
If (you know the basics) { things are not scary }
by Juan Davel
Managing Application Scoped Connection Strings
by Yerzhan Kalzhani
This is light, fast and simple to understand mathematical parser designed in one class, which receives as input a mathematical expression (System.String) and returns the output value (System.Double)
by josh-jw
This tip will give you a better idea about creating a custom media player in WPF.
by Jatinath
This trick will help you to merge two or more Images into one Image
by VC.J
Ways to get multiple values from a single method
by Stephan Ehret
Create YouTrack issues from Outlook and manage your issues from Microsoft Project
by RaviAakula
Web API 2- Basics of Attribute Routing
by Mehul M Thakkar
A library to minify HTML and CSS content.
by Yossi Yaari
A solution for monitoring Events called during test.
by Talal Tayyab
ASP.NET MVC 4 unobtrusive validation - Event hooks.
by Mr. Tapan Kumar
This article describes how to modyfy the webconfig file of a SharePoint site
by Pritam Deshmukh
This tip elaborates few useful tricks and shortcuts of VS 2013 mainly for professional edition (You can find them with Ultimate version too).
by Kei Okuma
I made Adorner which displayed Rainbow color Grid in Canvas.
by Matus Kovacik
Single class encapsulating UDP IP multicasting functionality and exposing it via observer pattern.
by cyber_addicted
Multiple file uploads using jQuery without loss of file on multiple add and click.
by mojtaba mahdavi software dev
Implement a multivariate polynomial class for a large number of terms.
by Bahram Ettehadieh
A simple way to implement "Dynamic Authorization" with the ability to assign permissions for actions to roles or users.
by Sumathi1
Building a generic dropdownlist in MVC for razor view
by NobsterTheLobster
Implements a taskbar notifier using an invisible window and a popup control
by Paw Jershauge
Want your own movie database??? Download IMDB in 20 minutes.
by rolandomontero
MySQL Connector for Visual Basic, obtaining a data table
by Kouji Matsui
This library is simple and is a substitution of System.String.Format.
by JatinKhimani
Nested GridView With Editing Facility of both gridview.
by Zaraken
Productivity oriented snipping tool for Windows
by Member 10163979
Implementing custom sort on numbers for Telerik's RadComboBox
by xibao
Code to produce holidays for NYC Stock Exchange.
by me.ajaykumar
OData
by Alexei Bouravtsev
COM OLE-container analog for .NET
by Nibbs
A .NET user control designed to show a digital meter connected via Modbus over TCP to an Omega DP41
by Magyar András
Almost all of the basic functions of the program(browser, text editor, image editor, media player) that you can associate files with it and open it. I want a simple and effective method to show the arguments (associated files) to open. How to associate files with C# program?
by Saad_Mahmood
Parsing XML File in WindowsPhone in NO TIME Using BLEND for VS 2013
by josh-jw
This article will help you to create partial views in asp.net mvc 4 with razor.
by Mr. Tapan Kumar
In this article I will describe how to integrate paypal in your asp.net web application
by Aman Thakur
The tip explains how to make recurring payments using the Stored Credit Cards in the Paypal Vault.
by sparky961
This article presents a replacement for System.Windows.Forms.Form that provides persistence of position, size, state, and splitcontainer splitterdistance
by Alaa Ben Fatma
Surf your PictureBox using scrolling bars
by Handy Torres
POCO to CAML simplifies creating of CAML queries by using expression trees.
by George Jonsson
How to calculate the points on a curve from a given polynomial.
by Mike_1989
The following code populates a mainmenu within VB.Net dynamically using recursion, until all items are added to the main menu
by Lance Roberts
A tray utility for monitoring log files and popping up error messages
by Thomas Daniels
A tip about how to set the position of a Windows Forms MessageBox in C#
by Peter BCKR
In legacy applications you can get a MissingMemberException bei acessing a SqlParameterCollection if you work with object-variables there are reference a SqlCommand-Instance.
by AnthonyMG
Tip for preventing deselection of rows in DataGridView
by Zac Newman
Easy to ready printing options for vb.net
by Oleksandr Kulchytskyi
Describes how to ensure session state within the ASP.NET WebAPI.
by HemendraSingh88
Hi, here we will see how to query a DataSet with LINQ(Language Integrated Query).
by _Noctis_
Showing how to use and tweak the DateTimePicker control
by Anshul R
Quick way to read RSS
by Kees van Spelde
Going on with a great article where another author left in 2010
by John L. Vidal
Know how an event in your app is performing by using Reactive Extensions
by munagalasantosh
Receive IPV6 or IPV4 based data using TcpListener
by Rafael Nicoletti
Refactor C# code to become more expressive
by saephoed
Passing event references as interfaces in C# by proxifying them within "EventReference" instances.
by Sonali Agarwal
ASP.NET RegularExpressionValidator
by Thang Believe
Deep dive into cookies generation to support Remember Me at login
by Sumit Samediya
Here we will learn how to remove default background color of ListBox item on selection in Windows Universal App
by JatinKhimani
This tip provides the repeter paging with First and Last Page button
by Tyronne Thomas
Resolving a hostname in C#
by Mohtshm Zubair
IHttpModule intercepting EndRequest to convert URL passed to Response.Redirect.
by Dipti Dutta
KeyDown event handler to restrict numbers to two decimal places.
by Moudud Hassan
Fix to COM component retrieving error:80040154 in web application running in IIS
by Md.Shamim Hassan
How to return Multiple Result Set using Entity Framework with stored procedure
by sbarnes
Sometimes better isn't, necessarily
by sbarnes
Rewriting and restoring XML files (streams) with two helper classes
by ashish__shukla
Routing is one of the integral parts of an MVC appliaction
by The Tigerman
Work in progress, but a simple HTML to RTF converter
by DerStauner
With this library it is possible to query datatables with SQL commands.
by smoore4
Run programs on remote machines without PsExec or WMI
by prateek tiwari
Integration of SAP with .NET using SAPConnectionManager.
by Sonali Agarwal
Create an ASP.NET page where the user can edit/modify text for an image and then save that image with printed text on it.
by Mayur V Lohite
A basic guide for URL Rewriting
by Shivarajbk
This article explains how to provide security to action in MVC applications
by Deenuji
Select multiple checkboxes in a GridView in an online shopping website.
by ats_ATISH
How to select/deselect all checkboxes in gridview using JavaScript
by VICK
Selection of All childboxes based on Parent checkbox in header and vice versa
by Himanshu Thawait
WCF With No config file needed – all setting in code only, No IIS – Self hosted, consume by channel factory
by munagalasantosh
send data to other system using two different ways, one way using IPV6 and other way is IPV4.
by Mike 2005
Code to include in a deployment project
by SoumenBanerjee
Sending mail using ASP.NET with optional parameters.
by Liero_
Serializable implementation of ICollectionChanged with the same methods and properties as System.Collections.Generic.List
by Liero_
I promised an alternative, so here is a good starting point:http://www.deanchalk.me.uk/post/Thread-Safe-Dispatcher-Safe-Observable-Collection-for-WPF.aspx It is custom implementation of INotifyCollectionChanged. As a bonus, it is thread-safe. :) For serialization support, you have to...
by linush
How to serialize a kendo treeview current view into JSON data
by Peter Carrasco
A quick introduction to data annotations in C#
by Gautham Prabhu K
Creating and using Service Locator pattern
by Mohammad Dayyan, VahidJafari
A library for creating .Net Serializable Expressions to send via WCF services
by Purushotham Agaraharam
Framing Conection String for WCF and Providing service url to Web App for Communication
by Hossein Shahpouri
Learn how to share ASP.NET sessions on different websites
by headshot9x
How to create ShoppingCart using Gridview in asp.net with code VB
by Rajesh Londhe
SignalR methods used for group and one-to-one chat
by Daniel Lieberwirth (BrainInBlack)
This describes a simple way to create interactive, bitmap based, buttons for WinForm applications.
by K C R
This article is to help beginners know how to create a customized tooltip on a bar chart
by Chinh Vo Wili
Send HTTP GET requests, consume ASP.NET Web API server
by jay1_z
The easiest, most straight-forward delegate tutorial.
by Dean Feng
A simple method to display a waiting dialog in WinForm application, and not block the main form.
by Pasan Eeriyagama
Simple Application Error Logging
by M.Ardekanian
A simple and easy way to implement uploading file with progress info to an ASP.NET page.
by Alex Onezashvili
Download source files - 323 Kb Introduction. Background Using the code Screenshot About the Author Introduction. Frequently we need to find bottlenecks in MVC View Pages, but there is no proper free tool ,specially when we need to find problem in View...
by Ritesh Ramesh
Using reflection to build a templating engine
by Evgeny Bestfator
How to use WPF Styles in other assemblies, or other project types, like WinForms
by Greg Dennis
How to implement a single selection set across as many ItemsControls as your app needs.
by Tomas Takac
How to run an action after a quiet period
by George Jonsson
LINQ methods can be slow inside loops as this little demo shows.
by Bimaln
Describe about the SOAP message in WCF with example.
by Christian Amado
In this tutorial, we will discuss on ProgressBar & Background worker. Follow the step-by-step tutorial to know how to use these clases.
by Rajesh Manjarekar
When CDC is turned ON against a table and the underlying table schema changes, such as adding/removing a column, changing datatype etc
by Srinivas-Miriyala
Executes SQL scripts in multiple databases at once.
by Hernán Hegykozi
Show you how to make a connection dialog developed completely from scratch.
by AE~1
A quick and easy tool for handling SSAS Cube Roles from C# Application
by Mohammed Hameed
Check-in/Check-Out mechanism for TFS - To avoid Build errors and improve productivity.
by Member 10295860
Using stored procedure type for binding data to dataset in SSRS or adding entity to Entity data model
by Clifford Nelson
This tip provides an alternate way to combine data with text in a WPF control using a ValueConverter that could be considered easier.
by idreeskhan
String interpolation or String handling in C# 6.0 with new feature
by cjb110
A String To Brush Converter for WPF/Silverlight
by puzsol
This outlines a method for being able to submit HMTL tags from a particular ASP.NET text box while still using the page validation for the rest of the page.
by munagalasantosh
Get all the array index where the sum equals or is greater than some x value
by Juan Francisco Morales Larios
Useful Actions for debugger in System.Diagnostics
by Jithin Geroge
Tips to improve the performance of ASP.NET web applications
by Raja.Krishnasamy
Attached the test data with method for regression testing by declaring ref type in attribute
by Shining Dragon
A TFS build template that cleans up after itself once the build is complete
by me.ajaykumar
Thread safe collections
by Cory Charlton
A thread-safe implementation of the ObservableCollection class
by Hiren Khirsaria
How to use Property Trigger, Data Trigger, Event Trigger in WPF
by Christopher John Paul
UDP based chat application.
by Swapnil Dhage
This is a helper/utility class that will add a layer of abstraction as well as separation for dispatcher related operations in WPF.
by Anupam Singh_
This tip is all about understanding the controller factory and exploring it...
by Praveen_Kumar Gupta
Manage Unique page id for sessions on each browser tab
by Vivek Krishnamurthy
Power shell script for upgrading Visual Studio 2008 solutions and projects into Visual Studio 2010.
by Sonali Agarwal
Creating a simple Text Editor web application using multiple web services.
by Oleksandr Kulchytskyi
More advanced singleton implementation.
by cyber_addicted
Routing Technique in ASP.NET (WEBFORM) AND USE OF MapPageRoute
by Joe Leibowitz
Build a simple GUI in PowerShell that will display data queried from a SQL Server table.
by Prince Tegaton
Building a Custom User Control for Messagebox
by BillWoodruff
Where a function requires execution in stages, and a check for an exit condition after/with each stage
by Tyronne Thomas
Using C# to monitor the bandwidth for wireless devices.
by Le Sourcier
This tip helps in using font icons as ImageSource.
by Sibeesh KV
Using Intro JS (Integration to Code Project FAQ)
by Michael_Lu
Provides tips for exporting documents involving tables connected by relationships
by heemanshubhalla
How to use Masked Textbox control in .NET
by umair zubairy
using Remote Attribute in MVC, vb.net
by Colm Hoban
A command line utility to script out all jobs from an instance to be used to transfer jobs to another server/environment or to be deposited in source control.
by Balwant.mnd
My requirement is to convert a single column of a table to another multi column table with the save data that single column contained.
by Måns Tånneryd
This tip shows how to significantly speed up inserts of large amounts of data using the entity framework.
by Måns Tånneryd
How to use bulk insert with your LINQ-to-SQL datacontext
by RupertC
If the order of your columns is different in the LINQ to SQL class from that in the database, then you also need to add a column mapping to the bulk copier. Otherwise you get mysterious errors in some of the loaded columns!In my simple fix, I assume that the names match even if the order may...
by Lộc Nguyễn
With a DEMO WPF application (WinNotif)
by Wahid Bitar
Validated the unique constraints at dbContext ValidateEntity in a generic way by reading the IndexAttribute values.
by Muhammad Albedewy
Validate Anti-Forgery in 6 easy steps
by Daniel Killyevo
If you need that validation message saying: "Input field should not contain HTML...” then this short tip is for you!
by ashish_5437
Implement validations in knockout js
by Member 10168565
How to send emails based on RTF templates containing images and attachments, while giving the user the possibility to modify the content before sending
by Christ Akkermans
Code for verifying the resources used by DisplayAttribute in order to catch any missing resource strings
by josh-jw
This tip explains how to use video brush and visual property as a media element.
by Marcello Cantelmo
Function Sqrt(ByVal value As BigInteger) As BigInteger Dim a As BigInteger = BigInteger.One Dim b As BigInteger = (value >> 5) + 8 While (b.CompareTo(a) >= 0) Dim m As BigInteger = BigInteger.Add(a, b) >> 1 If (BigInteger.Multiply(m,...
by NikStar
Using OutgoingMessageProperties and OperationContextScope to implement authorization by http header for WCF client that communicates with non WCF-based web services.
by sandeep12jain
WCF Restful Service Authentication without SSL Certificate
by xibao
Generate class definition for Web API Service Models.
by Đinh Công Thắng
You can fill any form, click any button, and extract any data from web by using Web Automation.
by In the Face of God
Generalize to access data in a database via HTTP
by josh-jw
This tip will help you to develop a webgrid in ASP.NET MVC application.
by Bruno Tabbia
Automatic positioning and resizing of explorer windows, without overlapping (for obsessive superusers)
by biffthebootmaker
Winform programmatically creating a form and with corresponding events
by KuRLiC
A wrapper class to access WMI objects using dynamic variables
by ShaikAnwar
This topic gives us an idea of how to write Linq queries on Entities & DataTable. This covers some basic querying and also usage of joins and group by using LINQ.
by Yachana_
While working with Microsoft.Office.Interop.Excel.Application after publish
by Sufyan S Jabr
All that you need to know when working with MSDTC, troubleshooting and problem solving.
by jmix90
As you may actually know WPF introduced the routed events. These last are no more specific to a single control but they are routed inside the tree of your controls. If you want to stop an event, you can mark it as Handled. If so, the routing engine will stop to propage it. In fact this is...
by Rohit Dot net
Validation control with a single validation rule is easy, but what if we need to validate a control using different validation rules. This article tells how to achieve multiple validation on single control in an easy and systematic way.
by Oussama_Kahoul
Introduction to WPF technology and the MVVM design pattern
by Anup Kumar Verma
Taskbar Notification like animation in WPF from code behind
by Tanna
This is WPF Gradient Control. I didn't find a suitable gradient control which will generate a linear gradient or radial gradient brush. This is a gradient control which has a color selector and gradient generator. It can generate radial or linear gradient brush.
by Vishal.KumarSingh
This is a simple tip to describe how to create a custom grid control which has solid gridlines with choice to change the gridlines brush, thickness and GridLinesVisibility.
by Dirk Bahle
A message box service implementation that is based on WPF.
by arpanmukherjee1
A base viewmodel implementing IDataErrorInfo
by Lee Reid
How to make a splash screen appear for a minimum duration with very little code
by Igor Sorokin
In this article I would like to describe simple WPF application for showing System.Windows.SystemColors list.
by ProtoBytes
Q: Have you ever tried to embed a FramworkContentElement into a FrameworkElement inside a WPF template?Consider the following: This won't work! ...
by Thomas Corey
A quick way to write the contents of a DataTable to an RFC 4180-compliant CSV file
by Chinh Vo Wili
This tip describes how to use Selenium WebDriver extension for jQuery of RaYell and customize waiting element loading
by CDP1802
Serializing and deserializing objects with XamlServices class
by Praveen Kumar Chauhan (PRK)
Sending Data Through XML to web Services
by arussell
XNA - rotate model about each axis without gimbal lock
by codiemorgan
When you want your Texture2D resource to download from the Internet
by Tecfield
This post shows how to create a zip package using System.IO.Compressio.
by MacSpudster
Here's a .NET 3.5 version.Basic testing done./// /// http://www.codeproject.com/Tips/315115/Zip-using-System-IO-Compression /// /// mods by GNoter ~ 20120124_094448 /// - Made dotNET v3.5 compatible /// - dotNET v3.5 does not have the optional param capability that dotNET...