|
|
posted on February 17, 2013 10:20
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);
}
}
There are currently no comments, be the first to post one!