라디오 버튼 목록을 사용하여 업데이트 패널의 일부 레이블 텍스트를 변경하려고하지만, 이유가 무엇이든간에 SelectedIndexChanged 이벤트는 처음으로 실행 된 다음 다시는 실행되지 않는 것처럼 보입니다. 다시. 나는 봤 거든 Googled 그러나 시도한 것을 모두는 문제점을 해결하는 운이 없었다.업데이트 패널 한 번만 라디오 버튼 목록 비동기 포스트 백
Autopostback이 true로 설정되어 있습니다. 표준 .net ScriptManager와 ToolkitScriptManager를 모두 시도했는데 둘 다 똑같이 작동합니다. 트리거에서 이벤트를 지정하고 지정하지 않은 상태로 시도했습니다. 그 컨트롤 유형에 대한) ... 나는 또한 내가 아니라면 페이지로드 이벤트에 대한 구조.
이벤트에서 사용하는 VB는 단순합니다.이 인덱스를 선택하면 label.text = "whatever"else "yadda"... 전혀 공상에 들지 않습니다. 전체 포스트 백에서 화면 플래시를 없애고 싶다는 점을 제외하고는 Update 패널이 작동하지 않으면 모두 잘 작동합니다. 나는 아래에있는 나의 asp.net의 고기 & 감자를 찌르고 있어요 ... 도와주세요!
타입 1,691,363,210 타입 2<asp:Panel ID="DesignInfoHeaderPanel" runat="server" CssClass="headerpanel">
<asp:Label ID="lblDesignInfo" runat="server" font-bold="true"
style="z-index: 1; left: 5px; top: 5px; position: absolute" Text="Design Information"></asp:Label>
</asp:Panel>
<div class="cpdiv">
<asp:Panel ID="DesignInfoPanel" runat="server" CssClass="collapsepanel">
<asp:UpdatePanel runat="server" ID="DIUpdatePanel" UpdateMode="Conditional">
<ContentTemplate>
<asp:Label ID="Label1" runat="server" font-bold="true"
style="z-index: 1; left: 5px; top: 7px; width: 95px; position: absolute; text-align: right"
Text="Account Name"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server" Font-Names="Verdana" Font-Size="8pt"
style="z-index: 1; left: 110px; top: 4px; width: 144px; position: absolute"></asp:TextBox>
<asp:Label ID="Label2" runat="server" font-bold="true"
style="z-index: 1; left: 270px; top: 7px; width: 140px; position: absolute"
Text="Est. Volume (# units)"></asp:Label>
<asp:TextBox ID="TextBox2" runat="server" Font-Names="Verdana" Font-Size="8pt"
style="z-index: 1; left: 415px; top: 4px; width: 60px; position: absolute"></asp:TextBox>
<asp:Label ID="Label3" runat="server" font-bold="true"
style="z-index: 1; left: 7px; top: 35px; width: 95px; position: absolute; text-align: right"
Text="Sales Manager"></asp:Label>
<asp:DropDownList ID="DropDownList1" runat="server" Font-Names="Verdana" Font-Size="8pt"
style="z-index: 1; left: 110px; top: 32px; width: 150px; position: absolute">
</asp:DropDownList>
<asp:Label ID="Label4" runat="server" font-bold="true"
style="z-index: 1; left: 485px; top: 7px; width: 140px; position: absolute"
Text="Personalization Type"></asp:Label>
<asp:DropDownList ID="DropDownList2" runat="server" Font-Names="Verdana" Font-Size="8pt"
style="z-index: 1; left: 630px; top: 4px; width: 150px; position: absolute">
</asp:DropDownList>
<asp:CheckBox ID="CheckBox1" runat="server" font-bold="true"
style="z-index: 1; left: 298px; top: 32px; position: absolute" Text="Rental"
TextAlign="Left" />
<asp:CheckBox ID="CheckBox2" runat="server" font-bold="true"
style="z-index: 1; left: 397px; top: 32px; position: absolute" Text="Dir Sales"
TextAlign="Left" />
<asp:RadioButtonList ID="RadioButtonList1" runat="server" BorderColor="#640000"
BorderStyle="Solid" BorderWidth="2px" Font-Bold="true"
RepeatDirection="Horizontal"
style="z-index: 1; left: 545px; top: 28px; position: absolute"
TextAlign="Left">
<asp:ListItem Value="0">Type1</asp:ListItem>
<asp:ListItem Value="1">Type2</asp:ListItem>
</asp:RadioButtonList>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="rblEmblemType" />
</Triggers>
</asp:UpdatePanel>
방금 일부 코드가 내 게시물에서 누락되었습니다. 트리거로 사용되는 라디오 버튼 목록은이 또는 모든 업데이트 패널에없는 패널에 있지만 일반 ASP : 패널이므로 여기에 내가 게시 한 코드에 정의 된 내용이 보이지 않습니다 ... – thisguy
RadioButtonList에 AutoPostBack = "True"가 없더라도 여전히 포스트 백을 수행하지만 ... 한 번만? – danyim
AsyncPostBackTrigger를 건너 뛰면 RadioButtonList가 다시 게시되고 조건부 모드가 올바른 선택입니다. – Alexander