0
그래서 radiobuttonlist에서 선택된 내용을 기반으로 선택 데이터를 내 데이터 소스로 변경하려고합니다. 내가 직면 해요 문제는 내가 기본 선택 라디오 버튼을 설정하면 쿼리가데이터 소스 선택 명령은 라디오 단추 목록으로 변경되지 않습니다
를 클릭 모든 버튼 후 업데이트되지 않습니다 업데이트 패널에있는 그내 radiobuttonlist, 사용자 (DropDownList로 작동하는 것입니다
나는 당신의 radiobuttonlist
이 updatepanel
에없는 그이 radiobuttonlist
를 업데이트합니다.이 업데이트되지 않는 이유 내기
If user.Text = "ALL" Then
SqlDataSource22.SelectCommand = "SELECT * FROM [dashboardtasks] WHERE [completed] = 'NO'"
SqlDataSource23.SelectCommand = "SELECT * FROM [dashboardtasks] WHERE (([agent] = @agent) AND (([completed] = 'YES') or ([completed] = 'XL')))"
Else
If RadioButtonList1.SelectedIndex = 0 Then
SqlDataSource22.SelectCommand = "SELECT * FROM [dashboardtasks] WHERE (([agent] = @agent) AND ([completed] = @completed))"
SqlDataSource23.SelectCommand = "SELECT * FROM [dashboardtasks] WHERE (([agent] = @agent) AND (([completed] = 'YES') or ([completed] = 'XL')))"
ElseIf RadioButtonList1.SelectedIndex = 1 Then
SqlDataSource22.SelectCommand = "SELECT * FROM [dashboardtasks] WHERE (([agent] = @agent) AND ([completed] = @completed) and tasktype = 'Air')"
SqlDataSource23.SelectCommand = "SELECT * FROM [dashboardtasks] WHERE (([agent] = @agent) AND (([completed] = 'YES') or ([completed] = 'XL')) and tasktype = 'Air')"
End If
End If
UpdatePanel1.Update()
UpdatePanel2.Update()
<asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Panel ID="Panel9" runat="server" Height="24px" Width="392px">
<asp:DropDownList ID="ddivision" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddivision_SelectedIndexChanged">
<asp:ListItem Selected="True">All</asp:ListItem>
<asp:ListItem Value="A">Club ABC</asp:ListItem>
<asp:ListItem Value="B">ABC Destinations</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="userslist" runat="server" Height="20px" Width="184px"></asp:DropDownList>
<asp:Button ID="updatediary" runat="server" Text="Update" /></asp:Panel>
<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatColumns="5" >
<asp:ListItem>All</asp:ListItem>
<asp:ListItem Selected="True">Land</asp:ListItem>
<asp:ListItem>Air</asp:ListItem>
<asp:ListItem>Cruise</asp:ListItem>
</asp:RadioButtonList>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddivision" />
</Triggers>
</asp:UpdatePanel>
내가 뭔가 메신저도 당신이 당신의 완전한 형태의 설계를 게시 할 수있는 radiobuttonlist 및 드롭 다운리스트 –
에 대한 AutoPostBack은을 사용하여 패널을 updateing, 일을 일부러 것을 tryed? –
나를 괴롭히는이 문제를 해결하는 데 도움이되는 무엇이든 –