15 Tem

Bootstrap Table With Emphasis Classes

This example shows how to create a bootstrap table with emphasis classes.

Firstly, you should add the following code to the head section in html:

  https://csharpexamples.com
  
  
  
  

SAMPLE USAGE:

    
Row First Name Last Name Points
1 George Hagi 100
2 Jill Smith 70
3 Eve Jackson 20
4 Adam Johnson 15
5 Maria Anders 0

RESULT:
bootstrap table emphasis classes

15 Tem

Enable Hover State On Bootstrap Table Rows

This example shows how to enable hover state on table rows for Bootstrap framework.

Firstly, you should add the following code to the head section in html:

  https://csharpexamples.com
  
  
  
  

SAMPLE USAGE:

     
Row First Name Last Name Points
1 George Hagi 100
2 Jill Smith 70
3 Eve Jackson 20
4 Adam Johnson 15

RESULT:
bootstrap table hover state

15 Tem

Striped Bootstrap Table

This example shows how to create a bootstrap table with background(fancy table).

Firstly, you should add the following code to the head section in html:

  https://csharpexamples.com
  
  
  
  

SAMPLE USAGE:

     
Row First Name Last Name Points
1 George Hagi 100
2 Jill Smith 70
3 Eve Jackson 20
4 Adam Johnson 15

RESULT:
Striped bootstrap table

15 Tem

Simple Bootstrap Table

This example shows how to create a simple bootstrap table.

Firstly, you should add the following code to the head section in html:

  https://csharpexamples.com
  
  
  
  

SAMPLE USAGE:

     
Row First Name Last Name Points
1 George Hagi 100
2 Jill Smith 70
3 Eve Jackson 20
4 Adam Johnson 15

RESULT:
Simple bootstrap table

14 Tem

C# Conditional Compilation Directives And Usage

The conditional compilation directives are used to conditionally include or exclude portions of a source file. This example shows how to use of preprocessor directives like “#define”, “#undef”, “#if”, etc. Firstly, you should add your variables above the “using”.

#define Debug // Debugging on
#undef  Trace // Tracing off
            #if Debug
                //To do something
            #endif

            #if Trace
                //To do someting    
            #endif