Category Archives: CSharp



ASP.NET Cookie Domains HTTP HTTPS Posted by in CSharp | Leave a comment

In order to preserve cookies across primary domain and its sub domains with or without www and between http and https, you can check out a piece of asp.net written in C# code below Continue reading

C# Get List of databases in SQL Server Posted by in CSharp | Leave a comment

Sometime, you want to written a program which allows to run SQL statement by CSharp,in design you need to list of database names of a certain instance, then choose specify database name you want to connect to execute script… Continue reading

JQuery How to use DatePicker Posted by in CSharp, Javascript | 2 Comments

A JQuery DatePicker can easily be added as a popup to a input text field.The popup shows when the textbox is focused and is closed by clicking on the “Done” button or clicking anywhere else on the page.Really, it helps us to input date very effectively and quickly… Continue reading

C# ASP.NET Remove leading and trailing quotes(‘) or double quotes (“) Posted by in CSharp | Leave a comment

In this article I would like to introduce to you the way of removing leading and trailing quotes(‘) by using C# Regular Expression of namespace System.Text.RegularExpressions Continue reading

C# ASP.Net Validate Date Posted by in CSharp | 1 Comment

This is just a function written in ASP.NET (C#) that validates an input date (with format dd-MM-yyyy) to see if it’s valid. An message will be displayed for each case to indicate the result. Continue reading

C# How to Get key/value pairs from app.config and web.config Posted by in CSharp | Leave a comment

This article shows you the way how to get key/value pairs from app.config used in window application and web.config used in web application… Continue reading

ASP.NET JQuery Autocomplete Textbox Posted by in CSharp, Javascript | Leave a comment

An example about using JQuery to load list of email addresses got from Generic Hander into the textbox.When user types text in this textbox, it supports auto-complete data due to file jquery.autocomplete.jsContinue reading

ASP.NET Get Facebook URL Total Comments, Total Likes, Total Shares Posted by in CSharp | 5 Comments

The following displays how to get total comments, comment count, total likes, like count, total shares, share count, total count, click count, comment box count of one or more URL that are shared or integrated with Facebook by using ASP.NET (C#). Continue reading

Implement Google Captcha (reCAPTCHA) With ASP.NET Posted by in CSharp | 1 Comment

Before using Google Captcha (reCAPTCHA), you need to Create a reCAPTCHA key by providing a domain name via http://www.google.com/recaptcha/whyrecaptcha. Let’s store the Public Key and Private Key in the appSettings section of the web.config then we will read these appSetting … Continue reading

Visual Studio Auto generate comments using GhostDoc plugin Posted by in CSharp | 3 Comments

Writing comment in your source code is one of important element of naming convention. It makes your source easy to understand and easy to maintain but it also takes you alot of time to do, of course.GhostDoc tool is helpful for you to generate code comments automatically… Continue reading