Modules

Snippets

17

Bind values from a custom table to a CheckBoxList bound from a DNN list

public void UpdateTrueFalseQuestions()
        {

            try
            {
                FBClientsController controller = new FBClientsController();
                FBClientsInfo item = new FBClientsInfo();

                for (int i = 0; i < cblClientTrueFalseQuestions.Items.Count; i++)
                {
                        item.TfQuestion = cblClientTrueFalseQuestions.Items[i].Value.ToString();
                        item.TfAnswer = cblClientTrueFalseQuestions.Items[i].Selected;
                        item.ClientID = Int32.Parse(hidClientID.Value.ToString());
                        item.CreatedByUserID = this.UserId;
                        controller.FBClientsTrueFalseQuestions_InsertUpdate(item);
                }

                lblMessage.Text = Localization.GetString("ClientUpdateSuccessful", this.LocalResourceFile);
                lblMessage.Visible = true;

            }
            catch (Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }

        }

Comments

There are currently no comments, be the first to post one!

Post Comment

Only registered users may post comments.
123movies