473,395 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

RadioButtonList, XML, C#, Repeater

Hello all,

I have been struggling with how to do this and before giving up wanted
to check here. I have an xml file structured something like:

<?xml version="1.0" encoding="UTF-8"?>
<quiz>
<module1>
<mchoice>
<question>1. Here is the question</question>
<answer>a. Answer 1</answer>
<answer>b. Answer 2</answer>
<answer>c. Answer 3</answer>
<answer>d. Answer 4</answer>
</mchoice>
<mchoice>
<answer>a. Answer 1</answer>
<answer>b. Answer 2</answer>
<answer>c. Answer 3</answer>
<answer>d. Answer 4</answer>
</mchoice>
</module1>
</quiz>

I want the questions and answers to appear all on one page. I was
going down the path of loading the xml doc into a radiobuttonlist that
was inside a repeater control, using c# in the background. I just
can't seem to get it to work right.

Any thoughts on if this is the right way to go or if I should try
another way?

Thanks.

Mar 28 '06 #1
0 1686

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: David Davis | last post by:
When I have an asp:radiobuttonlist control in a repeater and I want to dynamically preset a ListItem's selected property to true or false, I get an error message that says "BC30676: 'DataBinding'...
1
by: Ravi | last post by:
Hi, I have a radio button list and a dropdownlist inside a repeater control. Want to hide or display the dropdownlist based on selection in radiobuttonlist. I can add the...
4
by: Emil | last post by:
Can somebody tell me what would be the syntax for having an if statement and setting the selected index of a radiobuttonlist? This is my first project using ASP.net and I use C#. I have a repeater...
1
by: Darren | last post by:
Dear Groups, I have searched EVERYWHERE on the net and msdn for a solution to my problem and am coming up with nothing. I simply need to capture the 'selected row' and the...
0
by: djarmoluk | last post by:
I have a RadioButtonList (named rbAnswers) control within a repeater control. When binding to the repeater, I am trying to add an "OnChange" attribute to the individual list item controls (input...
2
by: WB | last post by:
Hi, I have the following nested RadioButtonList in my web page that displays a list of cities (categorized in states) for the user to select. There's a RequiredFieldValidator to ensure user has...
2
by: Michael Bohman | last post by:
Hi, i have a small problem with assigning a database value to a RadioButtonList control. On my form i have 3 user admin=1, premium=2 and basic=3, theese values is stored in an access database in a...
0
by: papaja | last post by:
I have gollowing code: <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%#Eval("Pitanje") %>'></asp:Label> <asp:RadioButtonList...
3
by: Brian | last post by:
Using external XML, I'm trying to build a quiz, but I can't seem to specify the DataSource for the RadioButtonList within a Repeater ItemTemplate. I've tried a number of approaches, but I haven't...
0
by: CURTISLESPERANCE | last post by:
Hi, I have a radiobuttonlist within a nested repeater, resulting in multiple radiobuttonlists. On a button click how do I find out what those selected values of the radiobuttons were? Code...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.