string does not exsist in current context : string declared inside class MyClass(TransactionId And pnrno)
is not working in button click

> ERROR MESSAGE

>  the name (TransactionId And pnrno) does not exsist in current context



     

class MyClass
        {   
            
            public string TransactionID { get; set; }
            public string pnrno { get; set; }
            public string trainno { get; set; }
            public string dateofbooking { get; set; }
            public string className { get; set; }
            public string Quota { get; set; }
            public string text { get; set; }
        }

 

    protected void btnsave_Click(object sender, EventArgs e)
        {
            SqlConnection con = new SqlConnection(@"Data Source=logistics.jayom.org,1434;Initial Catalog=logistics_kl;User ID=kl_admin;Password=Admin@2222");
            SqlCommand cmd = new SqlCommand("insert into testfbhv (TransactionId, pnrno) values('" + TransactionID + "','" + pnrno + "')", con);
            con.Open();
            cmd.ExecuteNonQuery();
            con.Close();
        }

