TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
rodolfo.vacchi
NA
3
0
Radio Button at Run time
Jan 13 2005 12:41 PM
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); } }
Reply
Answers (
2
)
Accepting input from the Numeric Keypad
checkbox in grid