Developer Geeks Home

My Articles [86]

RSS
  • 0
  • Likes
  • 7
  • Views
  • 0
  • Comments

How to apply watermark to images using ASP.NET Http Handler in IIS

Posted 9 days ago

We'll show how to apply watermark to images using ASP.NET Http Handler in IIS, with the help of a demo project in C#.

Read Full Article »


  • 0
  • Likes
  • 59
  • Views
  • 0
  • Comments

Agile Development Method: Scrum at a glance

Posted 12 days ago

Here, we will take at look at essential elements of Scrum Agile Development Method. This could be used as Scrum Cheat Sheet.

What is Scrum?

Scrum is an iterative and incremental agile software development framework for managing software projects and product or application development. Its focus is on a flexible product development strategy where a development team works as a unit to reach a common goal.

Essential Elements of Scrum (Cheat Sheet)

...

Read Full Article »


  • 1
  • Likes
  • 250
  • Views
  • 0
  • Comments

How to Quickly Create a Copy of a Table using Transact-SQL

Posted 2 months ago

Lets see how to Quickly Create a Copy of a Table using Transact-SQL

The easiest way to create a copy of a table is to use a Transact-SQL command. Use SELECT INTO to extract all the rows from an existing table into the new table. The new table must not exist already. The following example will copy the Employees table under the Company schema to a new table called Employees under the Department schema...

Read Full Article »


  • 1
  • Likes
  • 1.6k
  • Views
  • 0
  • Comments

How to create REST service with JSON and SOAP API in WCF

Posted 6 months ago

This article will demonstrate how create REST service with JSON and SOAP API all in one WCF service in ASP.NET 4.0

Introduction

The WCF REST Programming Model provides the required elements to build REST services with WCF. REST services are designed to be accessed by the widest range of possible clients, including Web browsers, using XML/JSON responses.

...

Read Full Article »


  • 0
  • Likes
  • 954
  • Views
  • 0
  • Comments

Thread Synchronization Essentials in .Net

Posted 11 months ago

This is a brief article showing what are the essentials of synchronization in thread.

Thread Synchronization Essentials

The following tables summarize the .NET tools available for coordinating or synchronizing the actions of threads:

...

Read Full Article »


  • 1
  • Likes
  • 13.6k
  • Views
  • 0
  • Comments

How to host WSHttpBinding and NetTcpBinding in a single WCF Service

Posted one year ago

This article will demonstrate you how to host service endpoints with WSHttpBinding and NetTcpBinding in a single WCF Service.

Introduction

Let's jump to implementation.

Implementation

1. Open a new ConsoleApplication in VS .Net IDE. Rename it to "SelfHostWCF".

2. Add a reference to System.ServiceModel dll in the project.

3. Create a ServiceContract Interface and implement the Service class with OperactionContract.

...

Read Full Article »


  • 0
  • Likes
  • 2k
  • Views
  • 0
  • Comments

How to read event log and display the content on ASP.NET page

Posted one year ago

This article will show you how to read windows event log and display its content on ASP.NET page, based on user selection.

Following is the sample code to write to the windows event log and display the contents of user selected windows event log on ASP.NET page.

...

Read Full Article »


  • 0
  • Likes
  • 2.6k
  • Views
  • 2
  • Comments

How to verify the email address is valid in ASP.NET

Posted one year ago

This article will demonstrate how to verify that the email address provided by a user is a valid email address, using a sample code.

Introduction

Some times website owners need to allow users to get registered on their website or subscribe to newsletters on their website, by allowing users to provide their email addresses. But how would you verify that the user provided email addresses are genuine and valid, to avoid bounced email messages.

This article will demonstrate how to verify that the email address provided by a user is a valid email address, using a sample code.

Implementation

ASP.NET Provides Built-in DNS Resolving Support. DNS class from System.Net namespace can be used to resolve DNS hostnames into IP addresses. Using this class we could verify email addresses and ensure that the domain name specified by the user actually resolved to an existing domain name.

...

Read Full Article »


  • 0
  • Likes
  • 2.3k
  • Views
  • 0
  • Comments

How to read an xml file and retrieve xml element values in .Net

Posted one year ago

This article will demonstrate how to read an xml file and retrieve xml element values in .Net using a sample Console application in C#.

Introduction

This is a Console application in .Net to read an xml file and retrieve xml element values.

This application will load the xml file from the provided file path, fetch all instances of the provided xml element from the xml file and then write the xml element values in a text file on your hard drive.

Attached are the source code and the EXE for this project for download.

Implementation

...

Read Full Article »


  • 1
  • Likes
  • 6.2k
  • Views
  • 2
  • Comments

How to return last inserted IDENTITY column value in SQL Server

Posted one year ago

This article will demonstrate different ways to return last inserted IDENTITY column value in SQL Server, with code samples.

Introduction

Let's briefly see what are the different ways to return last inserted IDENTITY column value in SQL Server:

I am going to introduce you to the following different functions in SQL Server, that could be used to perform this job:

@@IDENTITY - A system function that returns the last inserted identity value.

OUTPUT clause - Returns the last inserted identity column value of a table generated through new identity value, the computed column value or the default value from a default constraint.

SCOPE_IDENTITY - A function that returns the last identity value inserted into an identity column in the same scope, i.e. a stored procedure, trigger, function, or batch.

IDENT_CURRENT - A function that returns the last identity value generated for a specified table or view, for any session and any scope.

MAX - A function that returns the maximum value in the expression or table column.

Now, let's see in detail how these functions could be used with examples.

...

Read Full Article »