Create DataTable From SQL Query in C#

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading ... Loading ...
Create DataTable From SQL Query in C# DataTable is most commonly used for Data binding. You may need to generate DataTable many times in the whole project. The best practice is to create a method. In this tutorial, we are going to code a method getDataTable . Lets Start! Namespaces required for methods using System.Data; using System.Data.SqlClient; 12 using System.Data;using...
Author: Anas Mir 0 Comments December 18, 2013
Read More

Find string in an Array (C#)

1 Star2 Stars3 Stars4 Stars5 Stars (6 votes, average: 5.00 out of 5)
Loading ... Loading ...
Find string in an Array (C#) You can find string in an array using two methods. (I know there are plenty of methods, but two methods are most common) Method 1 You can loop each item of an array and compare each item of the array with the items that are to find. If match found it return true otherwise it returns false. C# public bool isInArray(string[] array, string text) { foreach (string item in array) { if (item == text) { return...
Author: Anas Mir 0 Comments September 06, 2013
Read More

Validate TextBox For Digits, Alphabets, AlphaNumeric Characters

1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 5.00 out of 5)
Loading ... Loading ...
Validate TextBox For Digits, Alphabets, AlphaNumeric Characters In this tutorial, I’ll show you how to validate TextBox for Alphabets, Numbers or AlphaNumeric Values. If a TextBox is validated only for Numeric, It should not accept other characters. If  its validated for alphabets it should not accept other characters. Its better to make methods for validation. TextBox can be validated for Alphabets, Numbers and Alphanumeric characters via two methods. (I know there are plenty of methods, but two methods are...
Author: Anas Mir 0 Comments September 06, 2013
Read More

SC Popup Subscriber Form – WordPress Plugin

1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 5.00 out of 5)
Loading ... Loading ...
SC Popup Subscriber Form - WordPress Plugin Plugin Information Plugin: SC Popup Subscriber Form Author: Anas Mir Requires at least: 3.0 Tested up to: 3.6.1 SC Popup Subscriber Form WordPress Plugin. jQuery Popup Feedburner Subscriber Form appears on Page Load. You can 1. Enable/disable jQuery Popup Subscriber Form from admin panel 2. You can set the feedburner feed id from admin panel 3. You can change the Heading and Detail from Popup form from admin panel Installation Step 1 1. Download zip...
Author: Anas Mir 8 Comments June 21, 2013
Read More

Populate TreeView from Database using C#

1 Star2 Stars3 Stars4 Stars5 Stars (8 votes, average: 4.50 out of 5)
Loading ... Loading ...
Populate TreeView from Database using C# TreeView Control is most important and useful control. Basically TreeView control allows you to display data in hierarchical form. In this tutorial, you will learn, how  TreeView Menu can be populated from databas. I’ll use User_Menu table to load data to TreeView.       User_Menu Structure Transact-SQL CREATE TABLE User_Menu ( [MenuCode] [int] IDENTITY(1,1) NOT NULL, [MenuName] [varchar](100) NOT...
Author: Anas Mir 12 Comments June 13, 2013
Read More

WP Post Navigation WordPress Plugin

1 Star2 Stars3 Stars4 Stars5 Stars (10 votes, average: 4.60 out of 5)
Loading ... Loading ...
WP Post Navigation WordPress Plugin Plugin Information Authour: Anas Mir Requires at least: 3.0 Tested up to: 3.8 WP Post Navigation Plugin gives you facility to show Previous and Next Post Links on Single Post Page. You’ve the option to set Post Navigation Bar at Bottom, Top or both Top & Bottom. You can apply CSS style to Previous and Next Post Links. You can set custom text instead of Next and Previous Post Titles. You can set custom Image for Next and Previous Post...
Author: Anas Mir 36 Comments April 05, 2013
Read More

C# Coding Standards and Best Programming Practice Part-3

1 Star2 Stars3 Stars4 Stars5 Stars (9 votes, average: 4.56 out of 5)
Loading ... Loading ...
C# Coding Standards and Best Programming Practice Part-3 16. The curly braces should be on a separate line and not in the same line as if, for, etc. C# if ( ... ) { // Do something } 1234 if ( ... ) {// Do something} 17. Use a single space before and after each operator and brackets. C# if ( showResult == true ) { for ( int i = 0; i <10; i++ ) { // ...
Author: Anas Mir 0 Comments March 26, 2013
Read More

You might also likeclose