.net - Multiple ASP Modal Popups On One Page?

Dec 18, 2010

We have a working modal popup on an asp.net page, and need to add another one. A linkbutton opens the first one.But if we try adding code for another linkbutton to open a second popup, which will use another mp extender control, neither one of them work. If we then remove the second popup and extender code, it works again.

I posted this question before but got an answer about using them in a gridview, which is not what is going on. This issue is not that complicated, just the fact that we can't get two separate popups working on a page. Are there any bugs or anything that would be preventing this from working? The code below is for the working popup. It seems logical that if we add code that works to a page and give the controls new names, it should work as well, right?

<!--modal popup extender-->
<ajax:ModalPopupExtender ID="mpe1" runat="server"
DropShadow="false" [code]....

In the page there is also the hidden button for the popup. it looks like this:

<!--hidden button for modal popup -->
<asp:Button ID="btn1" visible="true" runat="server" Style="display: none" Enabled="false" />

View 1 Replies


Similar Messages:

AJAX ::using 2 Modal Popups On The Same Page?

Aug 6, 2010

I'm having a problem using 2 ajax modal popups on the same page.If i use just 1 modal popup it works fine. I have a button (btnCommentOK) which calls an onlick function (OnClick="SaveCommentData") This works fine. The problem is when I add a second modalpopup extender. Funtionality works for the second modal popup but now the OnClick function on the first modal popup no longer works!

[code]...

View 2 Replies

AJAX :: Get Rid Of Page Flicker When Using Modal Popups?

Mar 27, 2010

our pages flicker when using modal popups.

Any way to reduce the flicker?

We tend to postback a response to the primary page to change data, or do something, then return a modal popup with results of change or action.

Upon showing the results or a confirmation screen in the modal popup, there is flicker.

View 2 Replies

AJAX :: Modal Popups In A Single Page

May 14, 2012

i have one modal popup in a page already & functioning properly..i added another modal popup but its not getting displayed as it shld in the center.

View 1 Replies

AJAX Modal Popups / Trying To Add Another One, Neither One Of Them Work?

Dec 16, 2010

We are successfully using ajax modal popup on our web application.But when we try to add another one, neither one of them work. Is it only allowed to have ONE modal popup on an ASP page?

View 2 Replies

MVC :: Partial Views And Popups...After Clicking On Close Need To Refresh The Page?

Aug 16, 2010

http://forums.asp.net/p/1577242/4029804.aspx#4029804

I amusing the PopUp example as suggestedin the above forum link.....

But now i want to Refresh the page after clicking on Close(x) ...

View 2 Replies

AJAX :: Modal User Control On Top Of A Modal Popup + Javascript Causes Page Flash

Jul 29, 2010

Modal Popup user control (its a message box) on top of a modal popup with javascript that maintains postback on a scrollable div all inside of an update panel causes my page to flash on postback of the user control. If any one of the peices (user control, modal popup, javascript) are missing everything works fine. The javascript is maintaing scrollback on a scrollable listview on the page. A modalpopup is shown on top of this main page that is for report parameters. The user control is used for validation and is displayed if a parameter is invalid. I know this may not be the best design, but it can't really change unless its a minor change. Heres the js if anyone wants to see popup or styles let me know.

//Begin methods to maintain or reset scroll position during postback.
var controlIds = [];
var scrollTops = [];
//Register a control to maintain its scroll position on postbacks.
function MaintainPostback(controlId) {
controlIds.push(controlId);
}
//Find the div/control id in the controlIds array and set its scroll position to 0.
function ResetControlScrollTop(controlId) {
var index = 0;
while (index < controlIds.length) {
if (controlId == controlIds[index]) {
scrollTops[index] = 0;
return;
}
index++;
}
}............

View 6 Replies

AJAX :: How To Add Multiple Targetcontrolids To A Modal Popup Extender

Oct 19, 2010

how can i add multiple targetcontrolids to a modal popup extender..

View 2 Replies

AJAX :: Set Multiple TargetControlID For ModalPopupExtender Modal Popup

Jul 17, 2015

   In my asp.net4.0 page, I have 3 Images each embedded in LinkButton :

<asp:LinkButton ID="panImgLnkBtn" runat="server">
<asp:Image runat="server" ID="panImg" BorderStyle="Ridge" BorderColor="Turquoise"
Width="130px" Height="100px" ImageUrl="~/CRMImages/no_image_symbol.png" />
</asp:LinkButton>

On each image, I want to open a popup with "Download" & "Print" buttons. 

I was thinking to create a panel and open a popup on linkbutton click by using ajaxToolkit:ModalPopupExtender . But, I realized that for I will need 3 such panels & ModalPopup's for each image as got to set TargetControlId for each link button.

In my other page, I will have more than 10 images.

What can be the best way to achieve this goal in such way that thru out my app I can call this popup and download or print the image ?

View 1 Replies

C# - Different Popups For Different Textbox Edits?

Nov 24, 2010

I have an issue with a popup in Asp.net using AJAX modalpoup extender. Is it possible to show one kind of popup when the user edits few textboxes and the other kind of popup for the remaining textboxes.

Ex: Only when txtbox1's value is changed, it should show me popup1 when the save button is clicked. Or else popup2.

View 1 Replies

AJAX :: Async Postback Modal Popup With Multiple Buttons?

Aug 12, 2010

I'm trying to create a modal popup that has multiple buttons that a user will click to choose options. This is all well and good but when the user clicks an option it fires a full postback. The modal opens async, but I can't get it to hide async. Heres some code:

[Code]....

View 2 Replies

AJAX :: Assign Multiple Panels To Modal Popup Extender

May 6, 2014

Requirement is:When I click on "Show Modal" button, it should open a ajax ModalPopup with 2 buttons: "Add Node" and "Add Goal"when I click on "Add Node" button, panel 1 should openWhen I click on "Add Goal" button, panel 2 should open.

I tried below code:

HTML:

<asp:Button ID="BAdd" runat="server" Text="Show Modal" ValidationGroup="usrvalid"/>
<!-- ModalPopupExtender -->
<cc1:ModalPopupExtender ID="Modal" runat="server" PopupControlID="ShowPanel" TargetControlID="BAdd" CancelControlID="btnClose" BackgroundCssClass="modalBackground1">
</cc1:ModalPopupExtender>

[Code] ....

But its not showing the panel1 and panel2 on button click(that are inside modal pop up)....

View 1 Replies

Popups Based On Querystring Parameters?

Jan 8, 2010

My querystring has 2 parameters say pm1 and pm2. I want to check the value of each and if the value if '1' then pop open a new window(one for each parameter) and the url for the two windows will be different.

View 2 Replies

Javascript: Finding Frame On MainPage From The Popups?

Nov 5, 2010

In the following Javascript I have to keep finding the mainFrame from the Popup pages, is there a better way to do this?

function sendRefreshMessage(data) {
var myObj = null;
myObj = document.getElementById('slPlugin');
if (null != myObj) {
try {
//perform operation on myObj
} catch (err) {
}.....

View 1 Replies

AJAX :: Dynamic Popups Using Control Toolkit?

Oct 20, 2010

I am new to ASP.NET, and want to design a sample ASP.NET website which will have some text in it. I saw a couple of examples for popups, but my problem is a bit different.I need to create the hyperlinks for a word dynamically for each web page.

I will have a list of keywords with their descriptions. I need to search for those keywords in the text, before I create a popup for them. How should I go about it?

View 1 Replies

One Webform And Two Popups - Parent Window Close

Nov 29, 2011

I have one webform and two popups. I am opening 1st popup using window.open method from my webform and it is working fine. then i am opening 2nd popup as showmadaldialog from 1st popup.

my second dialog have one button and if i click the button my two popup's(one popup and one dialog) should be closed and my webform should be appear.

currently am able to close 2nd popup. but am unable to close 1st popup from second popup.

[note : two popups are modal dialog] ....

View 1 Replies

AJAX :: Get A Modal Popup Inside A Modal Popup / Fire The Modal Popup On A Condition In A Text Change Event Of A Textbox?

Jan 17, 2010

I am trying to get a modal popup inside a modal popup?, also i want to fire the modal popup on a condition in a text change event of a textbox?...is this possible and can anyone give me directon on this

View 5 Replies

Configuration :: Handle Windows Authentication Login Popups Cancel Click?

Nov 2, 2010

I have simple web application called App that is secured with Windows Authentication. I have set identity impersonate to true in web.config. There is only one page (Default.aspx) in App directory. When user enters the site ex.: http://localhost/App the login window pops up. When user clicks Cancel, IIS redirects to page with an error 401.2. I want to redirect to http://localhost/App/app_start/login.aspx. App_start is an aplication that is secured with Forms Authentication. I tried to handle programmatically the redirection by adding Application_EndRequest method in Global.asax file. But when user clicks Cancel the Application_EndRequest is not being fired. When user successfully logs in the method is being fired. Is there any way to handle error 401.2 programmatically or maybe in a different way?

Application_EndRequest code:

if (Response.StatusCode == 401)
{
Response.Clear();
Response.Write("You don't have access to content.");

[Code]....

View 1 Replies

AJAX :: Callout Extender Popups In Invalid Location In Google Chrome?

Aug 5, 2010

I have a text box in a page. I added RequiredFieldValidator and ValidatorCalloutExtender to that textbox

it works fine in IE and firefox ie, ValidatorCalloutExtender popups near to textbox.

But in Google chrome the ValidatorCalloutExtender popups far from textbox.

View 1 Replies

Getting Mixed Results With Page Validation And Modal Popup Usage On A Page?

Mar 9, 2010

I have a page that works great until now that they wanted to add a ModalPopup based on a field value. Before the addition of this modal popup, i had a button event that would do the inserting of the data, it caused the page to validate and as long as the page passed then it would insert and move on to the next page. Now i have a ModalPopup displaying IF a certain field is empty. If they answer Yes to the modalpopup question, it takes them back to the page and sets the focus on that field. Works fine, but if they select No then i need the page to validate and insert the record and move on.I have a customvalidator for the field i need to check. I then have my insert on the main button that causes the validation. The "Yes" and "No" buttons within the modalpopup have the following setup.
[Code]....

My Main submit button has the following:
[Code]....

If i select NO it just goes back to the page and doesnt move forward. If i select YES and enter something the page pops up the modal again and again because i've clicked in the field and keeps asking even though there is now a value in the field. But since there is a value, i can continue on to the next page.

View 4 Replies

Forms Data Controls ::Date Button Which Popups A Calendar And Selected Value Displayed?

Jul 22, 2010

I am using asp.net 3.5. i am newly in .net.i create a new web proj.in my proj i need Date button which popups a calendar and Selected value displayed on a specific text box.I used Calendar tool but i am not satisfied with this tool.i learned abt date time picker tool.but in my tool box date time picker not showing.so how i get date picker tool in my web based appli.and How to use date picker tool.

View 2 Replies

Data Controls :: Multiple GridViews On Same Page With Multiple GridView CommandEventArgs?

Oct 21, 2015

I have used multiple grid view on same page with multiple selectedindexchanged event but selected indexchanged event call only for first gridview.  

View 1 Replies

Web Forms :: Multiple User Control With Update Panel Causing Multiple Page Load?

May 2, 2010

I have an update panel in a user control and I am adding multiple instances of it for example 5.

When that update panel refreshes the page load occurs 5 times.

How can I prevent it only for once?

View 3 Replies

MVC :: 2 - Dynamic View Content - Render A Page That Will Have Multiple Radio Button Groups As Well As Multiple CheckBoxes

Aug 4, 2010

I have an application that needs to render a page that will have multiple Radio Button Groups as well as multiple CheckBoxes. The desired layout is determined by a database table.

table structure:
PackageID uniqueidentifier
PackageName string
ItemName string
RadioGroupName string
ViewControlName string

This table defines a "Package". The "Package" can contain many different "Items" that require different controls used in the View. The "RadioGroupName" field is used to mark which RadioButtons should be grouped together. The "ViewControl" field marks which control should be used on the View to display the field. The query in my repository will return a result set such as

1 / "First Package" / "Item1" / "First Group" / "RadioButton"
2 / "First Package" / "Item2" / "First Group" / "RadioButton"
3 / "First Package" / "Item3" / "First Group" / "RadioButton"
4 / "First Package" / "Item4" / null / "CheckBox"
5 / "First Package" / "Item5" / null / "CheckBox"
6 / "First Package" / "Item6" / "Second Group" / "RadioButton"
7 / "First Package" / "Item7" / "Second Group" / "RadioButton"
8 / "First Package" / "Item8" / "Second Group" / "RadioButton"

Given this result set, I need to render the view as follows:

A RadioButton group with 3 options (Item1, Item2, Item3)
A CheckBox (Item4)
A CheckBox (Item5)
A RadioButton group with 3 options (Item6, Item7, Item8)

I have read that it is possible to use "if" conditions and looping structures inside the View. I have also read that this is a bad practice. Another issue I see is knowing which Item has been selected from each RadioButton group when I hit the Controller POST function. Previously I have built a page that has a single RadioButton group. My ViewModel was as follows:

[Code].........................

View 1 Replies

AJAX :: Modal Popup Using Modal Disappear In Postback

Jan 24, 2013

I look for a good way for arrangement Admin pages Items

for example Admin Upload Page consists of these sections:

* make a new folder

* delete folder

* upload file in folder

* show folders information (in a gridview)

* download test

so I think one way is showing this sections in modal

but when I tried make a new folder in modal after clicking in create folder button modal disappeared.

Is there any way that  modal doesnt disappear until user click close button?

I mean I want modal to behave like a page.

If there isn't a way what to do for classification sections?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved