Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Ankith Reddy
Page 14 of 73
Bootstrap class input-group-xs
To make extra small input group, use the input-group-xs.You can try to run the following code to implement the input-group-xs class in Bootstrap −Example Bootstrap Example $
Read MoreWhat does Array.Length property of array class do in C#?
The Array.Lenth property in C# is used to find the length of the array.Let’s set the array class first −Array arr = Array.CreateInstance(typeof(String), 3); arr.SetValue("Electronics", 0); arr.SetValue("Clothing", 1); arr.SetValue("Appliances", 2);Now since the array’s length is 3, the Length property will give the result 3 −arr.LengthThe following is the code to implement Array.Length property of array class −Exampleusing System; using System.Collections.Generic; using System.Linq; using System.Text; namespace lower { class Program { static void Main(string[] args) { Array arr = Array.CreateInstance(typeof(String), 3); arr.SetValue("Electronics", 0); arr.SetValue("Clothing", ...
Read MoreBootstrap Inline Form
To create a form where all of the elements are inline, left aligned and labels are alongside, add the class .form-inline to the tag.You can try to run the following code to create an inline form in Bootstrap −Example Bootstrap Example Full Name File input Check me out Submit
Read MoreHow to perform Division of Exponents of Same Base using C#?
Firstly, set the base −double n = 10;Now set the two exponents for division −double e1 = 10; double e2 = 8;Let us see the complete code to get the result of division of exponents of the same base.Exampleusing System; class Demo { static void Main() { double res, n, e1, e2; n = 10; e1 = 10; e2 = 8; res = e1 - e2; Console.WriteLine("Result = {0}^{1} : {2}", n, res, Math.Pow(n, res)); Console.ReadLine(); } }outputResult = 10^2 : 100
Read MoreWhat is the Values property of Hashtable class in C#?
The Values property gets an ICollection containing the values in the Hashtable.Declare Hashtable collection −Hashtable ht = new Hashtable();Now add valuesht.Add("One", "Henry"); ht.Add("Two", "Kevin"); ht.Add("Three", "David");To display values from Hashtable, the following is the code −Exampleusing System; using System.Collections; namespace Demo { class Program { static void Main(string[] args) { Hashtable ht = new Hashtable(); ht.Add("One", "Henry"); ht.Add("Two", "Kevin"); ht.Add("Three", "David"); // Displaying values foreach (string value in ht.Values) { Console.WriteLine(value); } Console.ReadKey(); } } }OutputDavid Henry Kevin
Read MoreC# ToEven property
The ToEven property is used with the MidpointRounding Enumeration to round a number to the nearest even number.Declare and initialize a decimal number −decimal val = 70.45M;To rounde a number to the nearest even number −decimal.Round(val, 0, MidpointRounding.ToEven)Here is the complete code −Exampleusing System; using System.Linq; class Demo { static void Main() { decimal val = 70.45M; Console.WriteLine(decimal.Round(val, 0, MidpointRounding.ToEven)); } }Output70
Read MoreIndicate a warning action to a particular table row or cell with Bootstrap
To indicate a warning action to a particular table row or cell with Bootstrap, use the .warning class.You can try to run the following code to implement the .warning class −Example Bootstrap Table Subject Marks Type Java 90 Programming Language PHP 92 Scripting Language jQuery 80 JavaScript Library
Read MoreHow to assign same value to multiple variables in single statement in C#?
To assign same value to multiple variables in a single line, use the = operator −val1 = val2 = 20;The above statement assigns 20 to the variables val1 and val2 as shown in the following code −Exampleusing System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Demo { class MyApplication { static void Main(string[] args) { int val1, val2; val1 = val2 = 20; Console.WriteLine("Value1 = "+val1); Console.WriteLine("Value2 = "+val2); } } }OutputValue1 = 20 Value2 = 20
Read MoreResponsive grid with Bootstrap
To create a responsive grid in Bootstrap, use the .col-*-* class in Bootstrap.In the below example, we have 4 divs −Example Bootstrap Example This is div1. This is div2. This is div3. This is div4.
Read MoreCreate multiple select list in Bootstrap
To create multiple select lists in Bootstrap, use multiple,You can try to run the following code to implement multiple select −Example Bootstrap Example Country India Australia US
Read More