Posted by :
Anwar Hossain
Category :
asp.net c # basic tutorial
How to find odd number in c #
In this tutorial I will show how to generate Odd numbers in c#. I have given two example first example is very simple. First example I have used simple for loop to find Odd numbers. Second example I have created a Boolean type function then used the function for finding Odd Numbers. Both the examples check reminder of a number. If the reminder not 0 then the number must be odd number.
How to find Odd number in c #
|
Posted by :
Anwar Hossain
Category :
asp.net c # basic tutorial
How to generate random number in c #
In this tutorial I will show how to generate random number in C# programming language. We have to use Random Class to generate Ran Random number. Next Method of Random class is used to generate random number. In this example I have used two argument fist argument takes min number and second argument takes max number. I have given another example to generate random number using loop and it will also give you clear idea about Random number generation in c sharp.
Generate random number in c# prgramming
|
Posted by :
Anwar Hossain
Category :
asp.net c # basic tutorial
Nested For Loop Example in C Sharp
Dear viewers in this tutorial I will show simple nested for loop example in c sharp. When a loop performs within a loop is called nested loop. In this tutorial I have created two loops after creating first loop I have also created another loop within the first loops.
Simple Nested For Loop Example in C Sharp
|
Posted by :
Anwar Hossain
Category :
How to create asp.net control dynamically
Dynamically Label control creation in ASP.Net C #.
Dear viewer sometimes we need to create ASP.Net Label programmatically or dynamically. In this tutorial I will show how to create ASP.Net Label Control dynamically in ASP.Net C #. For creating ASP.Net Label Control I have created a function and called the function page load event. I have used for loop to create multiple Label but without using loop one Label Control can be created.
Dynamically Label control creation in ASP.Net C #.
|
Posted by :
Anwar Hossain
Category :
How to create asp.net control dynamically
Dynamically TextBox control creation in ASP.Net C #.
Dear viewer’s Sometimes we need to create ASP.Net Textbox programmatically or dynamically. In this tutorial I will show how to create ASP.Net Textbox Control dynamically in ASP.Net C #. For creating ASP.Net Textbox Control I have created a function and called the function page load event. I have used for loop to create multiple Textbox but without using loop one Textbox Control can be created.
Dynamically TextBox control creation in ASP.Net C #.
|
Posted by :
Anwar Hossain
Category :
asp.net c # basic tutorial
Store C sharp reference type in a List C#
Dear viewers in this tutorial I will show how to store reference type data into c sharp List. We know a list of item can be accessed by indexed and has many functions and properties. In this example I have created a class named Employee and created necessary properties. Now I have used List Add function to add Employee information. After adding Employee information I have also shown how to use properties and functions of List.
Store C Sharp reference type in a List C#
|
Posted by :
Anwar Hossain
Category :
asp.net c # basic tutorial
Find number of items in a List C#
Dear viewers in this tutorial I will show how to count list item in asp.net C Sharp. In this example I have created list of country then I have found how many country are available in list. So for finding or counting a number of item in a List we have to use Count Property of List.
Count number of items in a List C#
|
Posted by :
Anwar Hossain
Category :
asp.net c # basic tutorial
Concept about C # List
Dear viewers in this tutorial I will give concept about C # List. C # List is also known as generic type and we have to need to import System.Collections.Generic namespace .The main difference between ArryList and List is List dynamically resize but ArrayList does not resize dynamically List not only hold primitive type data such as byte, short, int, float, double, long ,char, bool, DateTime, string, object etc but also hold reference types and object instances. Hear I have given only two examples to understand clearly.
List example C #
|