C# - Timer Causes Dropdownlists To Disappear Permanently After A Modal Popup?

Apr 8, 2010

On a fairly complex page, we're getting some unusual behavior with dropdownlists in IE6. To layout the basic structure, there are 2 update panels on the page each with a gridview presenting a master-details layout. In addition to the grid, each panel houses some dropdownlists for filtering the data in the respective gridview.

Now what's happening is that a button on the bottom grid will cause a modal popup form to display, where some details about the row item can be modified. As per the ASP.NET AJAX javascript, the dropdowns disable during the postback, and re-enable after it closes. The bottom grid also has a timer attached to it that periodically updates it to keep the view of the data fresh. When this timer ticks after the modal popup is closed, the drop down lists mysteriously vanish, except for the ones in that update panel which apparently get rendered again.

Oddly enough, if the timer ticks while the popup is up, the drop downs enable early and show through the modal (oh IE6...) but don't vanish later on.

View 1 Replies


Similar Messages:

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

AJAX :: Ajaxtoolkit PopupControlExtender - Popup Modal Disappear By Itself

Sep 27, 2010

i put PopUpcontrolExtender in my page to learn more about this toolkit base on the Ajax tutorial but ,when i click on the button, popup modal form popped up and disapear by itself fast, here is my code:

<%
<%
@
Page
Language="VB"
AutoEventWireup="true"
CodeFile="Default.aspx.vb"
Inherits="_Default" %>@
Register
Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit"
TagPrefix="ajaxToolkit" %>
<!
<
<
DOCTYPE
html
PUBLIC
"-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">html
xmlns="http://www.w3.org/1999/xhtml">head
runat="server">
</
<
<title>Untitled
Page</title>head>body>
<form
id="form1"
runat="server">
<asp:ScriptManager
ID="ScriptManager1"
runat="server"
/>
<asp:TextBox
ID="TextBox1"
runat="server"></asp:TextBox><br
/>
<div>
<ajaxToolkit:CalendarExtender
ID="CalendarExtender1"
runat="server"
TargetControlID="TextBox1">
</ajaxToolkit:CalendarExtender>
<br
/>
<asp:TextBox
ID="TextBox2"
runat="server"
TextMode="Password"></asp:TextBox>
<ajaxToolkit:PasswordStrength
ID="PasswordStrength1"
runat="server"
TargetControlID="TextBox2">
</ajaxToolkit:PasswordStrength>
<br
/>
<br
/>
<br
/>
<asp:Button
ID="btnok"
runat="server"
Text="Pop Up Test"
Width="96px"
/>
<br
/>
<asp:Panel
ID="Panel1"
runat="server"
BackColor="#FFFFC0"
Width="184px">
<asp:Label
ID="Label1"
runat="server"
Text="This is Test"
Width="264px"
CssClass="ModalPopup"></asp:Label><br
/>
<asp:Button
ID="btnPopupOk"
runat="server"
Text="Ok"
/></asp:Panel>
<ajaxToolkit:PopupControlExtender
ID="PopupControlExtender1"
PopupControlID="panel1"
OffsetX="500"
OffsetY="100"
runat="server"
TargetControlID="btnok"
>
</ajaxToolkit:PopupControlExtender>
<br
/>
<ajaxToolkit:DropShadowExtender
ID="DropShadowExtender1"
runat="server"
Opacity="75"
TargetControlID="Panel1">
</ajaxToolkit:DropShadowExtender>
</div>
</
</
</form>body>html>

and also i can not put DropShadow="true" in my PopupControlExtender because i will get this Error: "AjaxControlToolkit.PopupControlExtender' does not have a public property named 'DropShadow'"

View 9 Replies

AJAX :: Modal Popup Makes Parent Page's All Dropdown Lists Disappear?

Apr 7, 2010

I have masterpage which includes dropdown list for choosing skins for page.

Also I have Home.aspx include above master page. This Home.aspx contains update panel[up1] which further comprises of gridview, link button, image button[IB] and dropdown list. Also there is one modal popup that has a panel which includes dropdown and text box.

Requirement: when i click image button[IB], modal popup opens up and home.aspx gets grayed up.

Issue: when i click image button[IB], modal popup opens up, but all dropdowns placed in[Home.aspx and Master page] get disappeared[invisible]. Once i close modal popup , they are visible.

View 4 Replies

Modal Popup And Timer And Session Timeout?

Mar 2, 2010

I want to show the modalpopup with 2 buttons ok and cancel with text your session timeout is expired

on ok button we want to reset timer and keep session alive and on cancel we remove the session

if user dont keypress on the form then session is timeout after some time

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

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 :: Event Handler From Modal Popup Can't Seem To Find A Control That Is On The Modal Popup

Apr 9, 2010

I have an Ajax ModalPopupExtender on a page. To summarise. I have a link on a page, when I click the link the modal popup displays. On this modalpopup I've a textbox and an 'ok' and 'cancel' button. I wish to find out what was entered in the textbox when the button is clicked I try this but the value of ((TextBox)button1.Page.FindControl("theTitle")) is null.

if (((TextBox)button1.Page.FindControl("theTitle")).Text == "")
void okButton_Click(object sender, EventArgs e)
{
try
{
//if i try this tt does not compile//The name 'theTitle' does not exist in the current context//if(theTitle.Text == "")//{//}
Button button1 = (Button)sender;
//TextBox theTitle = ((ImageButton)(e.Item.FindControl("theTitle")));
if (((TextBox)button1.Page.FindControl("theTitle")).Text == "")
{
}
else
{
}
}
catch (Exception)
{
}
}

View 3 Replies

AJAX :: Hide A Modal Popup When Another Modal Popup Is Shown

May 7, 2015

I have three modal popup and three link buttons the first link button is on menu i.e. login that shows login-popup and the login popup contains two links forgot password and register both of them opens a popup but the problem is the login popup isnt hiding with click on register or foreget link the popups are appearing perfectly but arent hiding.

The html for all three popup is as shown below:-

 <cc1:ModalPopupExtender ID="Modallogin" runat="server" PopupControlID="loginpanel" TargetControlID="loginlink" BackgroundCssClass="modalBackground"
CancelControlID="lnkforgot">
</cc1:ModalPopupExtender>
<asp:Panel ID="loginpanel" runat="server" CssClass="modalPopup">

[Code] .....

And the codebehind file that i wrote some code which also isnt working is as shown below:-

protected void Button2_Click(object sender, EventArgs e) {
Modalforget.Hide();
} protected void lnkregister_Click(object sender, EventArgs e) {
Modallogin.Hide();
Modalregister.Show();

[Code] ....

I also used breakpoints on link click event and are not going to code behind file on click and popup is just shown without hiding the other. And the css used is I found on aspsnippet site!

View 1 Replies

Web Forms :: Dropdown Lists Disappear In The Modal Pop Up Using IE 6?

Nov 22, 2010

in all browers this works but in IE the dropdown list items in my modal pop up extender vanish when I make a selection. I even have a ddl in ajax panel and the same thing happens. it seems like a bug.

View 1 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 Click Control Within Panel Is Closing Popup

Jul 27, 2010

I'm using modal popup extender and panel with calendar in it. Click the "Next / Previous Month" closes the modal popup. How do I tell the modal popup to ignore click events in a calendar control inside the panel targeted for popup? I'm confused because when using extender before, you had to click OkButton or Cancel to close popup. I have update panel for reason. I just minimized the code for easy review.

[Code]....

View 5 Replies

JQuery :: Modal Popup That Allows Callbacks Or Asynchronous Calls Without Losing The Popup?

Aug 7, 2010

any modal popup controls whereas I can interact with the controls, causing callbacks and asynchronous calls without losing the popup.

I tried with the modalpopupextender, but the popup will disappear with the call and re-rendering the popup like many people will cause massive flashes of the popup which i want to try and avoid.

View 1 Replies

AJAX :: Modal Popup Moving Data From Popup To Parent

Sep 2, 2010

I have one page with a panel that makes up my ModalPopup. On the ModalPopup there is an updatepanel with a textbox and a button in it. There is a textbox on the "parent" page and I want to click the button on the modalpopup and move the data from the popup textbox to the parent textbox. So far, no joy. I have a line in the code behind to move the data between textboxes and I have also tried javascript to do the same thing but I am not able to make this happen unless i click the button twice.

View 5 Replies

AJAX :: Get One Modal Popup To Trigger A Second Modal?

Aug 19, 2010

How can I get one modal popup to trigger a second modal? And in between each modal, I need to execute server code.

Page load, check if question needs answering -> Modal 1 -> User answers -> run server code to check if question two needs answering -> Modal 2 -> show page.

I could do this using a series of asp:Views if there is not a clean way, the management just really likes the modals

View 2 Replies

AJAX :: Show Modal Popup Above Another Popup

May 25, 2010

I'm in a Unique position where I have to display one popup above another popup. Problem is that popup B's background does not show above popup A's content and as such you ae still able to click on buttons, ect. on popup A.

I tried to rather disable the Tab Control on popup A with javascript once popup B is displayed, but it only disables textboxes and labels and nothing else.

getting popup B's background to display above popup A or help with disabling all controls (Contained in Tab Control) on popup A?

View 1 Replies

Display Timer In A Popup At Bottom Of Page?

Nov 9, 2010

I want to display a timer in a popup which should be displayed at the bottom of the webpage. this popup should not

move even if i scroll the page. This is like alerting user during booking of a ticket(Displaying time left to complete his transaction).

View 2 Replies

AJAX :: Modal Popup Extender Along With An Embedded Video, The Popup Is Hidden Behind The Video In IE?

May 4, 2010

When using a modal popup extender along with an embedded video, the popup is hidden behind the video in IE but works as expected in FF.I've tried manually setting the z-index of the popup to a huge number and the z-index of the video object to 1 but this makes no difference.
I've put the code for a sample page below.

[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

Web Forms :: Changing Index On Dropdownlists Childs Don´t Cause Other Dropdownlists To Reload?

Jan 30, 2011

i have the following code:

[Code]....

3 nested dropdownlists SELECTing from DB. So i select the brand, then i select the model and then i select the product and click on SEARCH button.

But when i select thebrand, and then the model, and if i want to change the brand, it does not reset the second and third dropdownlists.

View 3 Replies

AJAX :: Displaying Popup Message Within Ajax Modal Popup

Dec 7, 2010

In my application I have a formview which is inside of a Ajax modal popup.Once users enter the information in the formview and click save, I validation the input.errors, I want to display an error message as a popup or as a modal popup (not javascript alert) with in the ajax modal.How do I do that. I tried several ways but it closes the ajax modal popup.

View 2 Replies

Page_Load After Modal Popup

Apr 20, 2010

I have a page with a user control which gets some data updated via a modal popup. Upon clicking "ok" on the modal popup - the new data is being written to the database - but the base page doesnt "reload" to show the updated data. How do I get that to happen?

View 3 Replies

C# - Getting Value Back From Modal PopUp?

Jun 24, 2010

I am having a modal pop in Item Template of a gridview

like

<ItemTemplate>
<asp:LinkButton ID="lnkbtnSeek" CommandArgument='<%# Eval("ID") %>' runat="server" Text= "Info" CommandName="Seek"></asp:LinkButton>
<asp:Panel ID="pnlProject" runat="server" Style="display: none"

[Code]....

Now On click on btnsubmit I want to get the textbox(txtDiscription) value in button command event. Else every thing is working fine. On pressing Info Linkbutton I am able to popup the modal popup and on button click able to do the work(else that textbox data). Also only able to call Gridview_RowCreated event not others even Gridview_RowCommand event is not firing. But events I don't need if I can get the value of that txtbox in somewhere.

View 2 Replies

C# - .NET Modal Popup, Entirely From Code Behind?

Jan 6, 2010

What I am trying to do is create a bit of reusable code that can write a modal popup, either through javascript or using the ajaxcontrol toolkit all from the code behind.The modal would be a sort of login pop up for controlling access to more restricted areas of the website allowing certain users to re-credential in for higher access.

I was thinking of doing a user control but I forsee some problems with passing all of the appropriate information along without it being completely hoaky.

EDIT: I know how to use the ajax control toolkit and its controls, and I know how to make login screens, I'm asking how to do this entirely from the code behind from a class that would be independent of its implementation

View 4 Replies

Modal Popup And Gridview

Aug 7, 2011

I wanted to open modal up using ajax,gridview and detail view but its not opening. See the code here

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

[Code].....

View 1 Replies







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