AJAX :: Javascript Window.history.back() With Modal Popup Extender

Sep 30, 2010

I have a asp.net page that has a list of items. When one of the items from the list is clicked a details page is displayed. This details page has a link button to show a popup for history of the item. The details page also has a button with text 'Back'. The back button has onclick event set to "javascript:window.history.back();".

This back button works fine and goes back to the first page. However when the user is on the second page and opens the pop up by clicking on the link button, the back button stop working and displays Webpage has expired message.

View 2 Replies


Similar Messages:

AJAX :: Modal Popup Extender Background On Window Resize

May 14, 2010

I am using modal popup extender in my web page, it is working fine, but when the page contents are expanded, modal popup displays with no background color. Here is more info -

The web page contains bunch of update panels that have reports in iFrame controls inside it. On click of save, I display modal popup with confirmation message. Initially, all panels are collapsed, modal popup is displayed properly with the gray background color. When i expand all the panels, page gets really huge and modal popup displays no background color (transparant). Below are the styles I am using -

.modalPopupBackground
{
background-color: Gray;
filter: alpha(opacity=50);
opacity: 0.50;
}
.modalPopup
{
background-color: white;
border-width: 3px;
border-style: solid;
border-color: #165EA9;
padding: 3px;
width: 600px;
height: 150px;
}

Here is the modal popup code -

<asp:Button ID="btnHiddenTarget" runat="server" Style="display: none" Text="HiddenTargetControlForModal" />
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnHiddenTarget"
BackgroundCssClass="modalPopupBackground" PopupControlID="ModalPanel1" OkControlID="btnModalYes"
DropShadow="true" PopupDragHandleControlID="ModalPanel3" />
<asp:Panel ID="ModalPanel1" runat="server" Style="display: none;" CssClass="modalPopup">
<asp:UpdatePanel runat="server" ID="updPopupMsg">
<ContentTemplate>
<asp:Panel ID="ModalPanel3" runat="server" Style="cursor: move; background-color: #DDDDDD;
border: solid 1px Gray; color: Black; height: 20px">
<div>
<p style="text-align: center;">
<asp:Label runat="server" ID="lblInfoPopupHeader" Font-Bold="true"></asp:Label></p>
</div>
</asp:Panel>
<asp:Panel runat="server" ID="pnlPopupMsg" Style="text-align: left; vertical-align: middle;
overflow: auto; height: 100px">
<p>
<asp:Label runat="server" ID="lblInfoPopup" Font-Bold="true"></asp:Label></p>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
<p style="text-align: center; vertical-align: bottom; height: 20px">
<asp:Button ID="btnModalYes" runat="server" Text="OK" CssClass="commandButton" Style="width: 100px;"
IgnoreDirty="Dirty" />
</p>
</asp:Panel>

Technical Environment - VS 2008 and AjaxControlToolkit 3.5.40412.0.

View 4 Replies

AJAX :: How To Print Contents Of Modal Popup Extender Using JavaScript

May 7, 2015

How to implement print functionality inside Ajax Modal pop up? I have a Ajax Modal pop up in one of the Web page. Inside modal pop up I have a "print" button. when I click on print to print the contents of Modal pop up, print window does not appear.

View 1 Replies

AJAX :: Show Modal Popup Extender OnClientClick Event Of Button Using JavaScript

Sep 19, 2013

modalextender.show();

i want to create an onclientclick event on a button to show ajax modal pop up but from code behind ie is in aspx.cs

View 1 Replies

AJAX :: Modal PopUp Extender Catch Exception Error And Display On Modal Popup

Aug 11, 2010

Modal PopUp Extender Catch exception error and display on modal popup

[Code]....

View 2 Replies

AJAX :: When Submit The Page Which Has Modal Popup Extender,popup Extender Becomes Visible?

Oct 29, 2010

When i try to submit the page which has modal popup extender,popup extender becomes visible! How can i avoid this?

View 2 Replies

AJAX :: Hide ValidatorCallout Extender When Modal Popup Extender Is Closed

Nov 25, 2013

I tried to find any methods to validate items inside Modal Popup Extender

View 1 Replies

Javascript - Window.open As Modal Popup?

Oct 14, 2010

I want open window.open as modal popup.

var features = 'resizable= yes; status= no; scroll= no; help= no; center= yes;
width=460;height=140;menubar=no;directories=no;location=no;modal=yes';
window.open(href, 'name', features, false);

I can use Window.ShowModelDialog(), but in my child window I am calling parent javascript method. That is not happening with ShowModelDialog().

function CallParentScript(weburl) {
alert(weburl);
if (weburl != null) {
var url = weburl;
window.opener.SelectUserImageCallback(url);
window.close();
return false;
}
}

If I use window.open(). I can call Parent javascript. But window is not modal. How to solve this? Can I write something in child popup to always top?

View 3 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

Javascript - A Popup In An Modal Window To Replace JS Confirm And Alert

Jan 10, 2010

I am working on a ASP.NET website that needs popups in a modal window similar to JS confirm and alert. How would I do this on client and/or server side?

View 2 Replies

Javascript - Modal HTML Window Popup That Is Run Within 3rd Party Site

Feb 17, 2011

I have a need to display our application widget within a third-party website (think things like GetSatisfaction, UserVoice and other feedback widgets that people use). What is the safest and most reliable way to do this? I can think of some criteria and issues already: The code needs to be framework and language independent. Even though my app is ASP.NET, the 'launcher' will be run in any HTML page that belongs to our customers. So I suppose that limits me to HTML and Javascript only. The function needs to be very easy to call. So that implies a <script scr='mywebsite.com/widget.aspx' ...> as the sole thing to give to my customer. There is to be no use of CSS. Or rather, I can style things, but without a CSS file, as that could pull in styles that conflict with what my customer is running. There must be no use of libraries such as JQuery. I mention this because I can imagine problems if we pull in a JQuery version that differs from our customer's, thus ruining their site with our code.

View 1 Replies

Ajax Modal Popup Extender Not Working In Ie

Jan 5, 2011

I have a Ajax modal popup extender .Its working fine in FF but not in Ie .

View 1 Replies

AJAX :: Modal Popup Extender Not Working Right In IE 7 Or 8

Jun 9, 2010

The Top is IE and the bottom is FireFox. Firfox is showing correctly. In IE, however, the grey background start directly on the left edge of the page and not across the window span, and the modal target stays below the grey background.

[Code]....

View 2 Replies

AJAX :: Modal Popup Extender Code Behind?

Jul 15, 2010

i have created an ajax modal popup extender and i want to be able to grab the values in the textboxes that are on the panel. how do i accomplish this from code behind:

[Code]....

once i have the value i need to perform a stored proc and isnert into the database. i have this part sorted but not sure how to grab the values initially.

View 1 Replies

AJAX :: Modal Popup Extender And UpdatePanel?

Mar 18, 2010

I have a page with a gridview and 2 panels each one assigned to its own ModalPopupExtender similar to below...

<asp:GridView ID="MyGV" runat="server">
</asp:GridView>
<asp:Panel ID="Panel1" runat="server" style="display:none;">

[code]...

View 8 Replies

AJAX :: Modal Popup Extender With LoginStatus?

Mar 5, 2010

I try to accomplish the following: When I click on a LoginStatus to log out, I want a modal popup extender to popup ONLY when some condition is true.The mpue has a targetcontrolId that refers to the LoginStatus-control, a PopupControlId that refers to a asp:panel-control.So far I accomplished only two situations:

- always a popup

- never a popup.

View 3 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 :: Modal Popup Extender And Login Control?

Jan 8, 2010

I have a login control on a web application. I am using a modal popup extender to show a message when the login button is hit. That all works fine. The problem is, once the user hits the "OK" on the popup, it closes and then nothing happens. I tried adding javascript postback but did not help.

View 3 Replies

AJAX :: Set Focus To Textbox In Modal Popup Extender?

Nov 24, 2010

I have a page which displays a modal popup window.

In the popup window I have a textbox and 2 radio buttons. How can I set focus to the textbox when this popup window is displayed.

View 4 Replies

AJAX :: Set Focus When Modal Popup Extender Closes?

Jan 14, 2011

I need to set focus on a textbox in parent form after the pop extender closes. I am setting the focus before showing the popup, but when the popup closes, it is lost.

View 1 Replies

AJAX :: Calendar Hiding Behind The Modal Popup Extender?

Nov 9, 2010

I am using modal popup extender to display a user control which has AjaxToolKit- calender extender. When i click on it, it is shown in the background and i cant click or select a date.. i couldnot get it to work..

View 3 Replies

AJAX :: Add Modal Popup Extender In Gridview Dynamically?

Feb 18, 2011

I am using a griview, in gridview placing a linkbutton then when click that linkbutton a modalpopup should occur. I am using oncommand
method in linkbutton to get sum values, that values is display in the modal popup control. How can i acheive this , give me a sample code.

View 1 Replies

AJAX :: Modal Popup Extender Not Center By Default?

Mar 27, 2011

Usually my Modal popup extender is center by default. However, I have a modal popup that is not center - the modal popup is located on the right lower side of the screen. I have a CSS class for my website that I really dont want to start tracking to see if it is causing my problem (In fact I am pretty sure thats the cause of the problem). So I was thinking...

Is there anyway I can manipulate the modal popup position through the CSS. For instance:

[Code]....

The above is not working, it doesn't do anything to manipulate the width of my background and the position of the modal popup.

View 3 Replies

AJAX :: Styling Modal Popup Extender Control

Jan 21, 2010

How to style ajax modal popup extender control just like in forums.asp.net site which when loaded displays a modal popup with close button. i dont want to show the popup every time if an user submits or cancels the popup once.

View 7 Replies

AJAX :: Page Is Flickering By Using Modal Popup Extender

Feb 5, 2010

I used modalpopup extender in my application. when the page is loading modalpopups are flikering so it is not looking nice.

View 4 Replies







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