Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 如何使用文本框显示动态生成的radiobuttonList值?_Jquery_Asp.net_Vb.net - Fatal编程技术网

Jquery 如何使用文本框显示动态生成的radiobuttonList值?

Jquery 如何使用文本框显示动态生成的radiobuttonList值?,jquery,asp.net,vb.net,Jquery,Asp.net,Vb.net,这是一个修改版本的问题,我们已经有相当一段时间了 我们有一个在线投票应用程序,它有一组radioButtonList,其中包含从数据库动态填充的值 安装示例如下: 红茶 候选人 填写候选人 控件id为radiobuttonList1的radiobuttonList由数据库中的这些值(包括写入候选值)填充 用户可以单击单选按钮选择CandidateA、CandidateB,或单击写入候选人 我们的问题是,写入候选人单选按钮没有允许用户输入他们选择的候选人的文本框 我很难修改我的脚本,这样写在候选人

这是一个修改版本的问题,我们已经有相当一段时间了

我们有一个在线投票应用程序,它有一组radioButtonList,其中包含从数据库动态填充的值

安装示例如下:

红茶 候选人 填写候选人

控件id为radiobuttonList1的radiobuttonList由数据库中的这些值(包括写入候选值)填充

用户可以单击单选按钮选择CandidateA、CandidateB,或单击写入候选人

我们的问题是,写入候选人单选按钮没有允许用户输入他们选择的候选人的文本框

我很难修改我的脚本,这样写在候选人单选按钮将有一个文本框除了它,所以当用户点击写在候选人单选按钮,他们可以输入候选人的名字

例如:

  • 红茶
  • 候选人

  • 填写候选项。您必须更正代码:

    Dim rb1 As CheckBoxList =(CheckBoxList)Page.FindControl("CheckBoxList1")
    

    谢谢你抽出时间。仍然得到相同的错误。实际上,应该是:
    Dim rb1 As RadioButtonList=DataList1.FindControl(“RadioButtonList1”)
    ,因为这是RadioButtonList。你还能想出别的主意吗?
    Object reference not set to an instance of an object.
    
     Line 36: rb1.Items.Add("writein")
    
    Dim rb1 As CheckBoxList =(CheckBoxList)Page.FindControl("CheckBoxList1")