Click here to Skip to main content
15,919,613 members

Comments by Member 8004095 (Top 1 by date)

Member 8004095 17-Oct-11 22:55pm View    
Hi,

Thanks for your reply. But still I have to iterate through the question to set/get the QnA property.

I changed the line "Question []" to "List<question>"

public string QnA
{
get { return question[question.FindIndex(t=>t.id=="QnA")].answer;}
set { ; }
}

Is it possible to set the properties (QnA, QnB, QnC) directly by specifying the xmlelement/attributes?

Also, is it possible to specify another parameter "section" along with "question" for the question object i.e

The form can also be

<form>
<question id="QnA">
<answer>AnswerforA


<answer>AnswerforB

</form>

Many thanks for your time.