이유가 무엇이든간에 - 업데이트 패널이 업데이트되지 않습니다. 이제이 모든 것이 gridview 내부의 템플릿 필드에있는 항목 템플릿 안에 있습니다. 주요 중첩. 만약 당신이 명시 적으로 정의 된 트리거가도 그래도, 난 당신이 bttnEdit 클릭하지 될 당신의 UpdatePanel 새로 고침 원인에 문제가있는 것 같은데요,UpdatePanel이 업데이트되지 않음
<ItemTemplate>
<asp:ImageButton ID="bttnEdit" runat="server" injid='<%# Eval("Id") %>' causeid='<%# Eval("Cause_Type") %>' natureid='<%# Eval("Nature_Type") %>' CausesValidation="False" ImageUrl="~/images/bttnEdit.gif" Text="Edit" OnClientClick ="loadmodal(this.injid,this.causeid,this.natureid);" />
<asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False"
CommandName="Delete" ImageUrl="~/images/bttnDelete.gif" Text="Delete" />
<asp:Panel ID = "Pnlmodal" runat ="server" style="background-color:White; padding:1em 6px;">
<asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional" >
<Triggers>
<asp:AsyncPostBackTrigger ControlID ="bttnEdit" EventName ="Click" />
</Triggers>
<ContentTemplate>
<asp:FormView ID="FormView2" runat="server" DefaultMode ="Edit" DataSourceID ="SqlDataSource8">
<EditItemTemplate>
<table>
<tr>
<td colspan="2" align="center" style="color:Blue;font-size:large">Edit Injury</td>
</tr>
<tr><br /></tr>
<tr>
<td align="right" ><strong>What event caused the injury?</strong></td>
<td align="left">
<asp:DropDownList ID="ddlcauseofinj" onchange="showifother('1');" runat="server"
DataSourceID="SqlDataSource2" DataTextField="Description"
DataValueField="ID" AppendDataBoundItems="True">
<asp:ListItem Selected="True" style="color:gray" Value="0">Causes of Injury</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr id="trother1" style="display:none">
<td align ="right"><strong>If Other, Please Describe:</strong></td>
<td align="left">
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right"><strong>What is the extent of the Injury?</strong></td>
<td align="left">
<asp:DropDownList ID="ddlextentofinj" runat="server"
onchange="showifother('2');" AppendDataBoundItems ="true" DataSourceID="SqlDataSource3"
DataTextField="Description" DataValueField="ID">
<asp:ListItem Selected="True" style="color:gray" Value="0">Extent of the Injury</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr id="trother2" style="display:none">
<td align="right"><strong>If Other, Please Describe:</strong></td>
<td align="left">
<asp:TextBox ID="TextBox4" runat="server" TextMode="MultiLine" ></asp:TextBox>
</td>
</tr>
<tr>
<td align="right"><strong>Type of Medical Treatment:</strong></td>
<td align ="left">
<asp:DropDownList ID="DropDownList3" AppendDataBoundItems ="true" runat="server"
DataSourceID="SqlDataSource4" DataTextField="Description" DataValueField="ID">
<asp:ListItem Selected="True" style="color:gray" Value="0">Medical Treatments</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="right"><strong>Treatment Provider:</strong></td>
<td align="left">
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Injury_Desc")%>'></asp:TextBox>
</td>
</tr>
<tr>
<td colspan ="2" align="center"><asp:ImageButton ID="CancelButton" runat="server" ImageUrl="~/images/bttnCancel.gif" /></td>
</tr>
</table>
</EditItemTemplate>
</asp:FormView>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
TargetControlID="bttnEdit" PopupControlID="Pnlmodal"
BackgroundCssClass="modalBackground" Drag="True" />
</ItemTemplate>
updatepanel이 작동하지 않습니까? –
테스트로 ModalPopupExtender를 제거해 보았습니다 ... 그냥 생각한 것 –