O
OJ
Hi,
I have added code to run on a button click event which adds
usercontrols to an aspanel control held in a contentplaceholder
defined by the masterpage.
for (int x = 0; x < (Master.PartyCtrl.Adults ); x++)
{
ASP.usercontrols_passenger_ascx passenger = new
ASP.usercontrols_passenger_ascx();
this.pnlAdults.Controls.Add(passenger);
passenger.ID = "passAd" + x.ToString();
passenger.RoomSource = this.SABSRooms1.Rooms;
passenger.BindControls();
}
This works nicely and displays as many or as few of the Passenger
control as required. However, when the passenger has filled in various
bits of info and clicks the submit button again I cannot find these
controls that have been added to retrieve their value. Can anyone help?
O
I have added code to run on a button click event which adds
usercontrols to an aspanel control held in a contentplaceholder
defined by the masterpage.
for (int x = 0; x < (Master.PartyCtrl.Adults ); x++)
{
ASP.usercontrols_passenger_ascx passenger = new
ASP.usercontrols_passenger_ascx();
this.pnlAdults.Controls.Add(passenger);
passenger.ID = "passAd" + x.ToString();
passenger.RoomSource = this.SABSRooms1.Rooms;
passenger.BindControls();
}
This works nicely and displays as many or as few of the Passenger
control as required. However, when the passenger has filled in various
bits of info and clicks the submit button again I cannot find these
controls that have been added to retrieve their value. Can anyone help?
O