Hi![]()
I was just wondering if any of you guys know how to do this in c#
Basically, i've got three radiobuttons (rbtnAns1, rbtnAns2 & rbtnAns3) which should display arrChoice that I've declared and created earlier as arrays.Code:for (int cntr = 0; cntr < 2; cntr++) { rbtnAns[cntr].text = arrChoice[cntr]; }
I've tried using this code in c#
and include these header files:Code:for (int cntr = 0; cntr < 2; cntr++) { ((RadioButton)this.FindControl("rbtnAns" + (cntr+1))).Text = (arrChoice[cntr]).Tostring(); }
using System.Web;
I was going to add using System.Web.UI----- but this option was not available
this means i cant get the FindControl() thing to work
Any help will be appreciated![]()




Reply With Quote