modalpopupextender

AJAX ModalPopup Pops Behind (Under) Page Content (Negative z-index)

家住魔仙堡 提交于 2019-12-20 03:07:11
问题 I am having an issue with the AJAX ModalPopupExtender in version 40412 of the AJAX Control Toolkit (http://ajaxcontroltoolkit.codeplex.com/releases/view/43475). The first time the ModalPopup is made visible it works correctly. The z-index is set to 6001 (and the background Div's z-index is set to 6000) and the Popup appears above everything else. If the cancel button within the ModalPopup is clicked, it also has the correct functionality, the display is set to "none" and the ModalPopup is no

asp.net ModalPopupExtender : need to show scroll bar when overflow

帅比萌擦擦* 提交于 2019-12-18 04:17:22
问题 I display a gridview in a ModalPopupExtender. When the screen resolution is to small, the pop-up is to big to all be displayed on the page. I just want to add scroll bar to the pop-up when this happen. I know it's probably some CSS, but all I tried did not work. here some base css .modalTextBoxBackground { background-color:Gray; filter:alpha(opacity=70); opacity:0.7; } .modalTextBox { border: 1px solid #FFFFFF; background-color: #0066CC; color: #00FFFF; } here some code from the aspx <asp

ModalPopupExtender - how to show only when certain conditions are met?

丶灬走出姿态 提交于 2019-12-13 17:14:44
问题 I am working with ModalPopupExtender. Onclick of button (which is TargetControlID of ModalPopupExtender), calls javascript which checks for some conditions. My requirement is, i want to show popup only if certain condition is true, otherwise hide it. Here is the code. Hide function is not working here. Popup appears even if hide() is called. function ShowAlert() { if (selBtn == "" || selBtn == null) { alert("Please select scrip/scheme first"); var modalPopup = $find('<%=ModalPopupExtender2

ASP.Net: label control in panel not updating

橙三吉。 提交于 2019-12-13 06:56:28
问题 I have an ASP panel with a modalpopupextender attached to it that is shown dynamically. Within the panel there are two labels that are dynamically populated with text when the panel popup is shown. however, when it is shown the labels are blank (missing). Below is my code for the HTML markup and code behind: HTML MARKUP <asp:Panel ID="pnlalert" runat="server" CssClass="modal"> <div class="rel"> <div class="modal-inner-wrapper-alert rounded-corners"> <div class="content rounded-corners"> <div

ModalPopupExtender open onclick of GridView row problems

时光怂恿深爱的人放手 提交于 2019-12-13 04:27:29
问题 (I'm using Lukinha RS's solution to the row onclick functionality) When I click on a row within the gridview I get a postback before the ModalPopupExtender opens, I dont want the postback however as you see the method I use is the cause. Unfortunatly it is the only way I have been able to get an onClick applied to a gridview row to open the MPE. Another problem I have is with the MPE open - I click a 'close' button on the popup panal it simply reloads the page resulting with the same popup

LinkButton postback problem inside custom WebControl

流过昼夜 提交于 2019-12-13 03:24:59
问题 I've given up trying to find a solution to this. My page has a ModalPopupExtender that shows an asp:Panel with my custom WebControl inside it. My custom WebControl contains only a LinkButton and is inside an UpdatePanel. The problem is that, when clicked, the LinkButton it is reloading the entire page. With a regular input Button, this does not happen. The LinkButton refuses to work as expected and reloads the entire page :( If I use the LinkButton alone inside the UpdatePanel (not inside my

How to add C# variables to html modal

梦想与她 提交于 2019-12-12 13:27:08
问题 In my ASP.Net app, I have a button that launches a modal. The onClick event fires the C# behind code that launches a modal. I am then calling a data table and populating string variables with values from the data table: protected void uxTicketHistoryButton_Click(object sender, EventArgs e) { ClientScript.RegisterStartupScript(this.GetType(), "key", "launchModal();", true); DataTable ticketHist = _dtMgr.GetContactInfoByName(uxContactDropdownList.SelectedValue); string rName = ticketHist.Rows[0

how to clear the textbox value of asyncfileupload ..?

匆匆过客 提交于 2019-12-12 11:19:21
问题 There is one button(MyButton). OnClick of this button a modalpopup(MyPopup) appears with one asyncfileupload ajax control, Ok button and Cancel button. The browse functionality of the asyncfileupload functionality is working fine, No problem. But after postback, if I click the MyButton again, the popup appearing with the previous path in the asyncfileupload control's textbox. How to clear it ... ! Thanks in advance. 回答1: None of the proposed ways worked for me. The problem is not specific to

Cannot set label.Text values in a modal popup from GridView values (in BoundFields)

廉价感情. 提交于 2019-12-12 02:19:28
问题 I have a GridView with several BoundFields from a compact SQL database (I am using the older Visual Studio Express 2010, in C#) I am experimenting, and have read that if your GridView fields are BoundFields rather than Template, extraction of the value should be as easy as: Label.Text = GridView1.SelectedRow.Cells[0].Text; (considering you are aiming for the value of the selected row) I am trying to show that value in a Modal Popup Extender, and it's showing blank. No error message at all,

Popup extender “frozen” on code-behind exception

时光毁灭记忆、已成空白 提交于 2019-12-12 01:14:19
问题 In a C#/ASP.NET project, we're using an ajax modalpopupextender to display a "Processing..." message to the users. We're displaying it using a Javascript call in the code of the ASP.NET page. Then, in the code behind, we're doing some database operation, and hide again the popup using "popup.hide();" The problem is that when an exception occurs in the code behind, the popup is still displayed and the application does not handle errors as per the "customErrors" tag of the web.config. Any idea