Question : CREATE CLASS IN C#

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
 private void Currancyrate()
    {
        SqlConnection connection = new SqlConnection(this.connStr);
        connection.Open();
        SqlCommand command = new SqlCommand("select * from shiv.exchange_rate where country ='" + this.Session["exchangerate"].ToString() + "'", connection);
        SqlDataReader reader = command.ExecuteReader();
        if (reader.Read())
        {
            this.lblcurrency.Text = reader["rate"].ToString();
            this.Lblcusymb1.Text = reader["symbol"].ToString();
        }
        connection.Close();
        connection.Dispose();
        reader.Close();
        reader.Dispose();
        command.Dispose();
    }


This My Code In Code behind File I want create class and Get value( lblcurrency,Lblcusymb1)

Answer : CREATE CLASS IN C#

Try:

INSERT INTO tblRegistration
(Fiscal,Redetermination)
SELECT
      2011,
      Redetermination
FROM
tblRegistration
Where Fiscal= 2010 and Redetermination = 'X'
Random Solutions  
 
programming4us programming4us