Hi Selvam…I’d like to know if you could help me…I’ve the following code…(below)..I have a datareader..when it loops my table it generates the radio buttons dynamically according to the data in my table on page load…on the same page I have a update button…but I do not know how to get/set(I tried) the value of each radio button dynamically.. how can I do it in order to update a table.??? I will really be grateful..many thanks..Rodolfo...my email is
[email protected] thnaks
private void Page_Init(object sender, System.EventArgs e)
{
readAnswers = ConnectDB.runSQL("select * from Answer where pollid="+PollID.ToString());
int y=0;
while(readAnswers.Read())
{
RadioButton myRadio = new RadioButton();
myRadio.Checked = false;
myRadio.GroupName = "Group";
myRadio.ID = readAnswers["AnswerID"].ToString();
myRadio.Visible = true;
myRadio.Width = 120;
myRadio.BackColor = Color.Beige;
myRadio.Text = readAnswers["Answers"].ToString();
Panel1.Controls.Add(myTable);
}
}