저는 프로젝트에서 작업 중이며 버튼 클릭만으로 패널을 팝업하고 싶습니다. 이유는 무엇이 될지 모르겠지만 그 이유는 ... ajax 툴킷을 다시 업데이트 한 후에 시도한 것입니다. 일.Model Popup Extender가 작동하지 않습니다.
제게 해결책을주십시오. 여기에 내가 시도 것입니다 : 버튼 클릭에
<form id="form1" runat="server">
<div>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
<asp:Button ID="btnShowPopupisbn" runat="server" style="display:none" />
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnShowPopupisbn" PopupControlID="pnl_isbn" CancelControlID="btnCancel" BackgroundCssClass="modalBackground" PopupDragHandleControlID="pnlpopup"></asp:ModalPopupExtender>
<asp:Panel ID="pnl_isbn" runat="server" Visible="False" width="400px"CssClass="color">
<asp:Label ID="lbl_isbn" runat="server" Text="ISBN " ForeColor="Black"></asp:Label>
<asp:TextBox ID="txt_isbn" runat="server" ValidationGroup="b" AutoPostBack="true"></asp:TextBox>
<asp:Label ID="lbl_booktwoid" runat="server" ForeColor="Red" Text="booktwoid" Visible="False"></asp:Label>
<asp:Label ID="lbl_conditionisbn" runat="server" ForeColor="Black" Text="Condition"></asp:Label>
<asp:DropDownList ID="drp_con" runat="server" Width="120px" ValidationGroup="b"></asp:DropDownList>
<asp:Button ID="btn_isbnnumber" runat="server" Text="Add ISBN" CssClass="blue button" ValidationGroup="b"/></asp:Panel>
</div>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button"/>
</form>
CS 코드 : 그것을 확인 호야
protected void Button1_Click(object sender, EventArgs e)
{
pnl_isbn.Visible = true;
ModalPopupExtender1.Show();
}
btnShowPopupisbn 어디서 –
표시 : 없음 btnShowPopupisbn에? –
yor 버튼 디스플레이가 null 인 경우 show popup을 호출 한 곳에서 –