This section provides a large number of
C# and VB examples.Note: The following code cannot be run online! !
Learn ASP.NET Web Pages through C# and Visual Basic examples.
C# example | VB example |
---|---|
Basic Web Pages Basic HTML form showing date and time reusable header and footer Example explanation | Basic Web Pages Basic HTML form showing date and time reusable header and footer Example explanation |
Basic C# For Loop For Each Loop While Loop Array Array If Conditional If Else Conditional Else If Conditional Switch Conditional Example explanation | Basic VB For Loop For Each Loop While Loop Array Array If Condition If Else Condition Else If Condition Select Condition Example explanation |
Use database Display database data using WebGrid to display data Example explanation | Use database Display database data using WebGrid to display data Example explanation |
Using the Chart Helper Display a bar chart based on an array Display a bar chart based on a database Display a pie chart based on a database Display a pie chart based on an XML file Example explanation | Using the Chart Helper Display a bar chart based on an array Display a bar chart based on a database Display a pie chart based on a database Display a pie chart based on an XML file Example explanation |