Hi ,
I have created panels dynamicly , with a label and a button in them , no when i click the dynamicly added button it should retrieve the label text in that specific panel . Here is some code that i have
private void ShowRoomsNow(string Desc , string code , int num)
{
Panel pnl = new Panel();
pnl.BorderColor = Color.Black;
pnl.BorderWidth = 1;
pnl.ID = "Pnl" + num;
Button btn = new Button();
btn.Text = "Book";
System.Web.UI.WebControls.Image img = new System.Web.UI.WebControls.Image();
btn.ID = "btn"+num;
Label lbl = new Label();
lbl.ID = "Lbl" + num;
lbl.Text = " Room Name: "+ Desc +"<br/> RoomCode: " +code + "<br/>No:"+ num;
...
Go to the complete details ...