Hi I have a checkbox in which if it is checked a panel with labels and textboxes are visible, however if not then it is not visible. What i am trying to do is if it is visible the values entered in the textbox are sent back to the database, and if they are not visible some default values are sent back to the database, this is what i have done so far but it doesnt work;
if (ckbDeliveryAddress.Checked)
{
CustomerOrderAddress customerOrderAddress = new CustomerOrderAddress();
CustomerOrderAddressBLC CustomerOrderAddressBLC = new CustomerOrderAddressBLC();
CustomerOrderAddressBLC.CustomerOrderAddress.CustomerOrderID = customerorderid;
CustomerOrderAddressBLC.CustomerOrderAddress.AddressLine1 = txtAddress.Text;
CustomerOrderAddressBLC.CustomerOrderAddress.AddressLine2 = txtAddress.Text;
CustomerOrderAddr ...
Go to the complete details ...