modalpopupextender

Preventing ModalPopupExtender from closing during/after PostBack

折月煮酒 提交于 2021-02-07 19:19:16
问题 How do I prevent my asp:ModalPopupExtender from closing after or during a postback to the server?? Here is my code: JAVASCRIPT // Confirm popup Ok button function OnOk() { $('#confirmPopup').hide(); ClickSaveButton(); // does a postback ShowGridPopup(); } ASP.NET AJAX <asp:ModalPopupExtender BehaviorID="confirmPopup" ID="confirmPopup" runat="server" TargetControlID="butConfirm" PopupControlID="ConfirmView" BackgroundCssClass="modalBackground" OnOkScript="OnOk();" OnCancelScript="OnCancel();"

Preventing ModalPopupExtender from closing during/after PostBack

可紊 提交于 2021-02-07 19:19:01
问题 How do I prevent my asp:ModalPopupExtender from closing after or during a postback to the server?? Here is my code: JAVASCRIPT // Confirm popup Ok button function OnOk() { $('#confirmPopup').hide(); ClickSaveButton(); // does a postback ShowGridPopup(); } ASP.NET AJAX <asp:ModalPopupExtender BehaviorID="confirmPopup" ID="confirmPopup" runat="server" TargetControlID="butConfirm" PopupControlID="ConfirmView" BackgroundCssClass="modalBackground" OnOkScript="OnOk();" OnCancelScript="OnCancel();"

How to get the clicked LinkButton text in GridView to a label in Popup Panel

我是研究僧i 提交于 2020-02-06 07:54:06
问题 I am using a modal popup inside a GridView for a LinkButton. what i need is to use the value of clicked LinkButton to appear on a label on Popup panel 回答1: <asp:GridView ID="GridView1" runat="server"> <Columns><asp:TemplateField> <ItemTemplate> <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" Text='<%#Eval("empname") %>'></asp:LinkButton> </ItemTemplate> </asp:TemplateField></Columns> </asp:GridView> <asp:LinkButton ID="lnkDummy" runat="server"></asp:LinkButton>

Is there a way to open another page using ModalPopup Extender?

[亡魂溺海] 提交于 2020-01-16 20:01:48
问题 I was wondering if there is way to open another page using a Modal Popup Extender? and if there is can someone please the tell me how do i go about doing it .. Thanx Owais 回答1: You could probably put an iframe pointing to the page within the Modal Popup Extender, however that would be a bit of a hack. I would recommend putting whatever content on that page into a user control and then referencing that control from both the original page and the page with the modal popup. 回答2: Try using an

Mobile ModalPopupExtender?

我是研究僧i 提交于 2020-01-06 03:15:07
问题 I'm running into an issue with the ModalPopupExtender when displayed on a small screen device. The modals height does not rescale to fit within the viewable window. Because it is centered the top and bottom of the modal gets clipped. Trying to scroll it only scrolls the underlying page not the modal. Anyone run into this or have suggestions on a fix? 回答1: You have to set Po-pup's panel to use scroll bars. There is 2 way of doing this : Set a fixed height (ex : 500px ) and overflow to auto

ASP.NET GridView pagination without postback

你。 提交于 2020-01-03 17:33:13
问题 Just a quick question for all of you guys. I have a Grid View inside Update Panel. My Modal PopUp pulls this Panel up. I am good so far. However when I try to do pagination on the popped up grid view, The page Posts Back. Then the Modal PopUp disappears and so does my GridView. When I click on mybutton again, It shows the Modal PopUp with Grid View and the Next Page Contents in Grid View. Is there any way I can get this Grid View to do pagination without Postback and without losing Modal

checked property not working in treeview checkboxes

谁都会走 提交于 2019-12-25 04:48:55
问题 I have a treeview, I want to check all the children when I clicked the parent node from javascript. I have followed this link from stackoverflow. This process is currect. I have tested it with alert message also. The ID which is showing in the alert message is exactly right ID of the child. And the method is been setting the status also. Code is reaching here childChkBoxes[i].checked = check; function CheckUncheckChildren(childContainer, check) { var childChkBoxes = childContainer

ModalPopupExtender doesn't work on IE6 frame layout

徘徊边缘 提交于 2019-12-25 04:44:23
问题 I'm using a "frame" layout similar to the one in this excellent answer: a div #top at the top of the page, a div#left on the left, and a div #main with the main content. The #top and #left divs contain navigation menus. Now I want to use a popup div using the AjaxControlToolkit ModalPopupExtender inside the content (#main) div. This works fine on IE8 (where #top, #left, #main all have position:fixed), but when I run it on IE6, the modal background only covers the #main div - I need it to

Make postback when the OkButton in a ModalPopup is clicked in ASP.NET AJAX

余生长醉 提交于 2019-12-22 12:18:10
问题 I follow the example in Atlas: Creating a Confirmation Using the ModalPopup Extender to make a postback when the OkButton in a ModalPopup is clicked (it uses the ModalPopupExtender that comes in ASP.NET Ajax Control Toolkit), but as I can see, the Sys.WebForms.PostBackAction() is no longer present in ASP.NET AJAX (the example is for Atlas). When I run it the "Microsoft JScript runtime error: Object expected" error message raises, in the line in javascript where I create the PostBackAction.

ASP.NET - Dynamic ModalPopupExtender

淺唱寂寞╮ 提交于 2019-12-20 04:23:02
问题 I have an ASP.NET page that has dynamically created LinkButton elements. Please note that these LinkButton elements are not added to a DataGrid, GridView, or Repeater. When a user clicks on one of these LinkButton elements, I want to display a dialog box. To accomplish this, I was attempting to use a ModalPopupExtender and set its TargetControlID when a user clicked one of the LinkButton elements. Unfortunately this is not working. Does anyone know how I can use the same ModalPopupExtender