<tr>
<td>
传签流程选择:</td>
<td>
<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"
RepeatLayout="Flow">
<asp:ListItem Value="0">默认流程</asp:ListItem>
<asp:ListItem Value="1">自定义流程</asp:ListItem>
</asp:RadioButtonList>
</tr>
<tr id="mytr" style="display: none;">
<td>
将应聘人员资料传签至:</td>
<td>
</td>
</tr>
龍童幽靈 11:32:46
控件代码
龍童幽靈 11:32:56
<script type="text/javascript">
function showtr(Value1)
{
if(Value1==1)
{
document.getElementById('mytr').style.display='block';
}
else
{
document.getElementById('mytr').style.display='none';
}
}
</script>
后台在Page_Load里的
for (int i = 0; i < this.RadioButtonList1.Items.Count; i++)
{
this.RadioButtonList1.Items[i].Attributes.Add("onclick", "showtr(this.value)");
}