Retrieving some values in array
<p>Hi
I have an array of random question nos (ids). I have one form with a label for the question, a radiobutton list for their answers and a next button &amp; checkbox to review that question. When I click the next button next(random from array) question appears. I want question id(array) those are checked for review.  How can I do this?
I used code as follows that calculates array (like this:10111) as i gives 1 value for checked &amp; 0 for unchecked rather that this i want array of question ids those are checked :</p>

<pre><code>//Code gives array of checked values in terms of 1 &amp; o
            int g;
            if (chkmark.Checked == true)
            {
                g = 1;
            }
            else
            {
                g = 0;
            }
            int[] chkarray = new int[Convert.ToInt32(Session["Counter"]) - 1];
            int[] temp1 = (int[])Session["arrofchk"];
            int k, no;

            if (temp1 == null)
                no = 0;
            else
                no = temp.Length;
            for (k = 0; k &lt; no; k++)
            {
           chkarray[k] = temp1[k];
            }
            chkarray[j] = g;
</code></pre>
