G
Guest
I am adding a bunch of textboxs dyanmically as shown below
TextBox tb = new TextBox();
tb.ID = DR.GetName(y).ToString(); //Last_Name
tb.Text = DR[y].ToString();
tb.Width = 200;
objCell2.Controls.Add(tb);
but when i try to access the text property
sql += "Last_Name = '" + Last_Name.Text + "', ";
I get the error
c:\inetpub\wwwroot\LRUpdate\Default.aspx.cs(253): The type or namespace name 'Last_Name' could not be found (are you missing a using directive or an assembly reference?)
What am i doing wrong?
Thanks
~Thomas
TextBox tb = new TextBox();
tb.ID = DR.GetName(y).ToString(); //Last_Name
tb.Text = DR[y].ToString();
tb.Width = 200;
objCell2.Controls.Add(tb);
but when i try to access the text property
sql += "Last_Name = '" + Last_Name.Text + "', ";
I get the error
c:\inetpub\wwwroot\LRUpdate\Default.aspx.cs(253): The type or namespace name 'Last_Name' could not be found (are you missing a using directive or an assembly reference?)
What am i doing wrong?
Thanks
~Thomas