Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Radio Button at Run time
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
rodolfo.vacchi
19y
2.6k
1
Reply
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); } }
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Accepting input from the Numeric Keypad
checkbox in grid