regarding alternative forms

raj k asked on September 23, 2014 14:19

I create one alternative form,these form already clone,in this form 4 text box controls,i want these controls data in code behind in button can get data?

Correct Answer

raj k answered on September 24, 2014 06:50

you can try this one also CMS.Helpers.ValidationHelper.GetString(form.GetDataValue("Email"), "N/A");

0 votesVote for this answer Unmark Correct answer

Recent Answers

Joshua Adams answered on September 23, 2014 17:31

reference the form name/id and then use the Data property. Here I am assuming that the form name is Form. "MyFieldName" will be the name of your field that you want. So you can do this for all four fields.

Form.Data["MyFieldName"].ToString() will give you the value of the field.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.