ASP.NET Page /AboutUs.aspx.cs (C#)
1: using System;  
2: using System.Data;  
3: using System.Web.UI.WebControls;  
4: using QuizNetOnline.Logic;  
5: using System.Drawing;  
6:   
7:   
8: public partial class AboutUs : QuiznetOnline.Web.UI.BusinessClasses.BasePage  
9: {  
10:     protected override void Page_Load(object sender, EventArgs e)  
11:     {  
12:         if (!Page.IsPostBack)  
13:         {  
14:             base.Page_Load(sender, e);  
15:   
16:             TableRow tblRow = new TableRow();  
17:             TableCell tblCell = new TableCell();  
18:             tblCell.Text = "Questions volume per topic";  
19:             tblCell.CssClass = "Small_Font_12pt";  
20:             tblCell.ForeColor = Color.White;  
21:             tblCell.Height = 30;  
22:             tblCell.ColumnSpan = 2;  
23:             tblRow.Cells.Add(tblCell);  
24:             this.tblTopicCount.Rows.Add(tblRow);  
25:   
26:             TableInformation tableInformation=new TableInformation();  
27:             DataTable tableinformation = tableInformation.GetTopicsCount(null,null,null,null);  
28:             foreach (DataRow row in tableinformation.Rows)  
29:             {  
30:                 tblRow = new TableRow();  
31:                 tblCell = new TableCell();  
32:                 tblCell.Text = row["TopicDesc"].ToString();  
33:                 tblRow.Cells.Add(tblCell);  
34:   
35:                 tblCell = new TableCell();  
36:                 tblCell.Text = row["Records"].ToString();  
37:                 tblRow.Cells.Add(tblCell);  
38:   
39:                 this.tblTopicCount.Rows.Add(tblRow);    
40:             }  
41:         }  
42:     }  
43: }  

.NET Documentation Tool is © 2002 - 2009 Winnersh Triangle Web Solutions Limited.