Ankith Reddy

Ankith Reddy

730 Articles Published

Articles by Ankith Reddy

Page 14 of 73

Bootstrap class input-group-xs

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 556 Views

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 More

What does Array.Length property of array class do in C#?

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 146 Views

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 More

Bootstrap Inline Form

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 2K+ Views

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 More

How to perform Division of Exponents of Same Base using C#?

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 253 Views

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 More

What is the Values property of Hashtable class in C#?

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 162 Views

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 More

C# ToEven property

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 144 Views

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 More

Indicate a warning action to a particular table row or cell with Bootstrap

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 482 Views

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 More

How to assign same value to multiple variables in single statement in C#?

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 3K+ Views

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 More

Responsive grid with Bootstrap

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 4K+ Views

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 More

Create multiple select list in Bootstrap

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 517 Views

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
Showing 131–140 of 730 articles
« Prev 1 12 13 14 15 16 73 Next »
Advertisements