如何在C#数组列表中存储HTML广播问题? [英] How do I store HTML radio questions in C# array list?

查看:47
本文介绍了如何在C#数组列表中存储HTML广播问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在上学,但我有点迷路了。如何存储html问题&回答一个c#文件?我做一个数组例如



数组[]问题=新数组[30];

问题问题=请求[q1 ];





Hello All,

I am doing an assignment for school but I am a little lost. How do I store the html questions & answers to a c# file? Do I make an array for example

Array[] Question = new Array[30];
Questions question = Request["q1"];


<p class="question">Question 1. What is the goal of League Of Legends?</p>
         
         <input type="radio" name="q1" value="a" id="q1a"><label for="q1a">Kill Enemies</label>
         <input type="radio" name="q1" value="b" id="q1b"><label for="q1b">Farm Minions</label>
         <input type="radio" name="q1" value="c" id="q1c"><label for="q1c">Destroy the Enemy Nexus</label>
         <input type="radio" name="q1" value="d" id="q1d"><label for="q2d">Make friends</label>





我尝试过的事情:



我是新手同时使用html& c#所以任何建议或提示都会有所帮助。



What I have tried:

I'm new to using both html & c# so any advice or tips would help.

推荐答案

使用RadioButtonList



[ ^ ]



快速入门源控制查看器 [ ^ ]



Googleasp.net radiobutton列出更多例子。
Use a RadioButtonList

RadioButtonList Class (System.Web.UI.WebControls)[^]

QuickStarts Source Control Viewer[^]

Google "asp.net radiobuttonlist" for more examples.


这篇关于如何在C#数组列表中存储HTML广播问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆