Testing Popup <html> <head> <title>This is my title</title> <meta charset=”utf-8″> <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <meta name=”description” content=”This is my website’s description”> <!– Latest compiled and minified CSS –> <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css” integrity=”sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u” crossorigin=”anonymous”> <!– Optional theme –> <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css” integrity=”sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp” crossorigin=”anonymous”> <!– Latest compiled and minified JavaScript –> <script src=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js” integrity=”sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa” crossorigin=”anonymous”></script> </head> <body> <div class=”col-md-12″> <input class=”btn btn-primary” type=”submit” value=”submit”> <input class=”btn btn-success” type=”submit” value=”submit”> <h1>This is my heading</h1> <h3>This is subheading </h3> <p>This is a paragraph</p> <table border=”1″ class=”table table-striped”> <thead> <tr> <th>ABC</th> <th>DEF</th> </tr> </thead> <tbody> <tr> <td>ABC</td> <td>DEF</td> </tr> <tr> <td>ABC</td> <td>DEF</td> </tr> <tr> <td>ABC</td> <td>DEF</td> </tr>Read More →

Useful Methods to Return values in Arrays Here are the available methods to get values in an array. Max returns the largest value. Min returns the smallest value. Sum returns the sum of all elements. Examples : Let’s consider this array : int[ ] arr = { 2, 4, 7, 1}; Console.WriteLine(arr.Max()); //Outputs :  7 Console.WriteLine(arr.Min()); //Outputs : 1Console.WriteLine(arr.Sum()); //Outputs : 14Read More →

Many operators in C# can be overloaded, it means that they can be redefined for custom actions. For example, you can redefine the action of the plus (+) operator in a custom class. Consider the Box class that has Height and Width properties: class Box { public int Height {get; set;} public int Width {get; set;} public Box(int h, int w) { Height = h; Width = w; } } static void Main(string[] args) { Box b1 = new Box(14, 3); Box b2 = new Box(5, 7); } We would like to add these two Box objects, which would result in a new, bigger Box.Read More →

Here lets create an array of Fruits (of same data type string) Name of Our Array is mystrArray and it has 5 elements.   string[] mystrArray = new string[] { “Apple”, “Banana”, “Grapes”, “Mango”, “Pine-Apple” };   // Reading array items using foreach loop foreach (string mystr in mystrArray) {     Console.WriteLine(mystr); } A loop will iterate through all the elements in the string and Print them one by one as we are referring to Each element of the array. Foreach loop is very handy when the requirement is to fetch multiple rows of records from a database.Read More →

C# has  various classes that are built-in and they can store and manipulate data. An example of such a class is the Array class. In order to store a collection of data the data structure that is used in C# is known as array. It can be described as a collection of variables of the same type. Let’s assume a situation where you need to store 250 numbers. One option is to declare 250 different variables but a smarter solution is to declare an array that stores 250 elements. To declare an array, specify its element types with square brackets: int[ ] yourArray; This isRead More →