asp:radiobtton怎么用,有代码.
下面是一段页面代码,一个DATALIST里面有RADIOBUTTON,这个控件应该怎么用啊,我要的效果是,从DB里查出来的数据显示在DATALIST中,最前面一列是RADIOBUTTON,可以选中其中一行.现在的效果是,可以同时选中多行并且得不到选中行的FLAG,有没有什么好的办法可以达到我要的效果,最好也可以得到选中哪一行的FLAG.高手来看看,谢谢.
HTML code:
<asp:DataList ID="myList" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"
SelectedIndex="0" onselectedindexchanged="myList_SelectedIndexChanged">
<ItemTemplate>
<tr>
<td align="center" style="width: 60px; height: 35px;">
<asp:RadioButton ID="radio" runat="server" />
<%-- <asp:RadioButtonList ID="RadioButton1" runat="server" >
</asp:RadioButtonList>--%>
</td>
<td style="width: 450px; height: 35px;">
相关问答:
HTML code:
<%
Response.Buffer = TRUE
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "content-disposition", "inline; fi ......
我做了一个ASP网站(第一次做):
在我电脑上,我下了个MySQL的ODBC,
连接语句:
ConnStr = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=127.0.0.1;DATABASE=test;USER=root;PASSWORD=123456;"
......
<asp:button>默认会提交页面,如何将 <asp:button>不提交页面,而执行其他的函数,即asp中的 <input type="button">
如何将 <asp:button>重置页面的表单值,即asp中的 <in ......
Active Server Pages 错误 'ASP 0113'
脚本超时
/admin/affiche_zx/i ......
conn.asp
<%
Set Conn=Server.CreateObject("ADODB.Connection")
Conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source="&server.MapPath("Connt ......