Usuário com melhor resposta
RadioButtonList não responde ao ser clicado

Pergunta
-
Após publicar minha aplicação o comando RadiobutonList não está respondendo, abaixo as linhas de código:
Protected Sub RadioButtonList1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles rblCategoriaCadastro.SelectedIndexChanged
btnInserirEnd.Enabled = True
btnPesquisarEnd.Enabled = True
txtPesquisaEnd.Enabled = True
btnInserirPJ.Enabled = True
btnPesquisarPJ.Enabled = True
txtPesquisaPJ.Enabled = True
btnInserirUA.Enabled = True
btnPesquisarUA.Enabled = True
txtPesquisaUA.Enabled = True
btnInserirUS.Enabled = True
btnPesquisarUS.Enabled = True
txtPesquisaUS.Enabled = True
btnInserirPF.Enabled = True
btnPesquisarPF.Enabled = True
txtPesquisaPF.Enabled = True
btnInserirUsu.Enabled = True
btnPesquisarUsu.Enabled = True
txtPesquisaUsu.Enabled = True
btnInserirUsu.Enabled = True
btnPesquisarUsu.Enabled = True
txtPesquisaUsu.Enabled = True
If rblCategoriaCadastro.SelectedIndex = 0 Then
mtvCadastro.ActiveViewIndex = 0
ElseIf rblCategoriaCadastro.SelectedIndex = 1 Then
mtvCadastro.ActiveViewIndex = 1
TabContainerPJ.ActiveTabIndex = 0
CargaddlPJEnd()
CargaddlPJEnd0()
CargaddlPJEnd1()
ElseIf rblCategoriaCadastro.SelectedIndex = 2 Then
mtvCadastro.ActiveViewIndex = 4
TabContainerPF.ActiveTabIndex = 0
CargaddlPFEnd()
CargaNomeTrab()
CargaNomeUsu()
End IfEnd Sub
Respostas
-
Wilson,
O controle RadioButtonList1 está com o atributo AutoPostback = true no aspx?
Carlos Eduardo Ferreira
- Marcado como Resposta Wilson Boris segunda-feira, 11 de junho de 2012 13:26
Todas as Respostas
-
Wilson,
O controle RadioButtonList1 está com o atributo AutoPostback = true no aspx?
Carlos Eduardo Ferreira
- Marcado como Resposta Wilson Boris segunda-feira, 11 de junho de 2012 13:26
-
-
Sim
<asp:Panel ID="Panel2" runat="server" GroupingText="CADASTRO" Width="940px"
style="text-align: left; color: #000000;" Height="69px"
HorizontalAlign="Center" BackColor="#CCCCCC">
<table class="style22">
<tr>
<td style="text-align: center; background-color: #CCCCCC;">
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<ContentTemplate>
<asp:RadioButtonList ID="rblCategoriaCadastro" runat="server"
AppendDataBoundItems="True" AutoPostBack="True" BackColor="White"
Font-Size="Larger" RepeatDirection="Horizontal"
ToolTip="Escolha uma opção para cadastro." Width="910px">
</asp:RadioButtonList>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
</asp:Panel> -
Sim
<asp:Panel ID="Panel2" runat="server" GroupingText="CADASTRO" Width="940px"
style="text-align: left; color: #000000;" Height="69px"
HorizontalAlign="Center" BackColor="#CCCCCC">
<table class="style22">
<tr>
<td style="text-align: center; background-color: #CCCCCC;">
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<ContentTemplate>
<asp:RadioButtonList ID="rblCategoriaCadastro" runat="server"
AppendDataBoundItems="True" AutoPostBack="True" BackColor="White"
Font-Size="Larger" RepeatDirection="Horizontal"
ToolTip="Escolha uma opção para cadastro." Width="910px">
</asp:RadioButtonList>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
</asp:Panel>