Calendar Control Closes Modal Window When Click On It

Jan 8, 2013

Why this wouldn't work?

HTML Code:

<asp:Panel ID="pnlModalPopup" CssClass="pnlBackGround" runat="server" Width="300px" Height="300px">
<%--<AUDIT:AuditSchedule2 runat="server" ID="auditschedule1" />--%>
<asp:TextBox ID="txtCalendar" runat="server"></asp:TextBox>
<asp:Calendar TargetControlID="txtCalendar" runat="server" />
<asp:Button ID="btnOK" runat="server" Text="OK" />

[Code] .....

The Calendar control closes the modal window when I click on it, and the buttons are unclickable.

View 2 Replies


Similar Messages:

AJAX :: Modal Popup Closes On Background Click?

Apr 1, 2011

I have a modal popup that on the first time it is running, if the user clicks the greyed out background the modal closes. On the 2nd and later times it runs correctly. The user can click the background and it works correctly. I have searched around and tried a few things with out any luck.

Here is the code.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true"> </telerik:RadScriptManager>
<ajax:ModalPopupExtender ID="GlobalModalPopupExtender" runat="server" PopupControlID="GlobalpnlPopup" TargetControlID="GlobalMain" BackgroundCssClass="modal_background"> </ajax:ModalPopupExtender>
<div id="GlobalMain" runat="server"> </div> <asp:Panel ID="GlobalpnlPopup" runat="server" Style="display: none; background-color: White; border-width: 4px; border-style: solid; border-color: #EA0A8D; padding: 4px; height: 40px; width:
200px; z-index: 10000; " CssClass="RadButton"> <table align="center"> <tr> <td align="center"> <asp:Image ID="imgGlobalProcessing" CssClass="progress_image" runat="server" ImageUrl="~/images/ajax-loader.gif"
/> <b>Processing...</b> </td> </tr> </table> </asp:Panel>
<script type="text/javascript">
Sys.Application.add_load(GlobalApplicationLoadHandler);
function GlobalApplicationLoadHandler(sender, args) { var prm = Sys.WebForms.PageRequestManager.getInstance(); if (!prm.get_isInAsyncPostBack()) { prm.add_initializeRequest(initRequest); prm.add_endRequest(endRequest);
} } function timer() { return true; }
function initRequest(sender, args) { var pop = $find("<%=GlobalModalPopupExtender.ClientID%>"); pop.show(); }
function endRequest(sender, args) { var pop = $find("<%=GlobalModalPopupExtender.ClientID%>"); pop.hide(); } </script>
.modal_background { background-color:Gray; filter:alpha(opacity=65); -moz-opacity:0.65; /* It is for Mozilla firefox browser */ Opacity:0.65; }

View 1 Replies

Web Forms :: Showing A Treeview Control In A Modal Window When Click On A Menu Control?

Mar 3, 2011

I want to make a website having the following UI.

Once I click on 'Engines included' a treeview having all the engine node should show. I am geting the engine collection dynamically from database.

1.What should i use to create enginesIncluded control? 2.How do i show a user control having a treeview on click of 'engine included' control? 3. I also need to show the selected engines on the top row as buttons .

View 1 Replies

AJAX :: Click Button In Modal Popup Without Window Closing

Dec 9, 2010

Is it possible to use buttons in a modal popup window and not have the window close after the postback?

View 2 Replies

C# - Parent Window From Which Open A Modal Dialog On Button Click?

Nov 19, 2010

I have a parent window from which i open a modal dialog on button click. In WinXP with IE8 it works just fine, but in Win7 with IE8, upon opening the modal dialog it brings me to the login screen. If i enter my credentials, close the dialog and open it again, it works.

The explanation i figured out is that the session isn't transfered between parent and child. The modal is opened with javascript window.open function.

I don't want to store the credentials in a cookie and then read it in my modal because it's a security no-no. Is there an explanation why this is happening in Win7 and not in XP and is there a resolution for this issue?

View 1 Replies

AJAX :: Run A JS Function Before The Modal Popup Closes

Dec 8, 2010

I need to run a JS function before the modal popup closes, this is because I need to close a flash netstream, currently the flv continues to play after modal is closed, you can hear audio and stream continues to download. I have the code to deal with this, but the modal closes before JS is actioned. The JS below talks to swf (videoPlayer_low) and closes the netstream. Note all this pain is to deal with IE :(

<asp:ImageButton ID="btn_Cancel5" runat="server" ImageUrl="images/close.gif" title="close" alt="close" OnClientClick="nsStreamVideo_low();"/>
var _nsStop = addLoadEvent(_nsStop);
addLoadEvent(function() {

[Code].....

View 2 Replies

Modal Pop Up Calendar Control - Unable To Select A Particular Date

Feb 14, 2011

I am using a Calendar extender in a modalpopup when i click the image button the calendar extender should be displayed and when i click a particular date that date should be displayed in the textbox its working but what my problem is when i click the image button for the first time the calendar extender is displayed in the back side of the modal pop hence i am unable to select a particular date. but when i click the same image button for the second time the calendar extender will be displayed correctly.

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

How The Calendar Control Is Displayed In A Popup Window

Oct 23, 2010

how The asp.net calendar control is displayed in a popup window and the selected date will be displayed inside a Textbox control.

View 2 Replies

AJAX :: Modal PopUp Closes On Selecting A Treeview Node?

Feb 28, 2011

I have a treeview and a button inside a panel. On a click of button 'btnView' i want to show the panel. So i decided to use the ajax modal popup. Every thing is fine but mu popup closes on selecting a node in the treeview. Actually i want to close the popup on click of button 'btnOK'. Here is my page markup

[Code]....

View 5 Replies

AJAX :: Datalist And Control Toolkit Modal Popup Window?

Sep 3, 2010

I have created list of thumbnail images in datalist and on clicking image i want to pass image name to Ajax control toolkit Modal Popup window which display bigger image.

View 2 Replies

C# - Unit Test Sessions Window Closes When Debugging?

May 26, 2010

When I select an NUnit test in the Unit Test Sessions window and click debug, the window disappears. My breakpoints are hit, but if I hit F5, the Unit Test Sessions window does not return until the test returns a result or I stop the debugging session. This is preventing me from viewing any console output during tests.

View 1 Replies

Asp.net - User Closes The Window Using Default Icon Provided In Fancybox?

Apr 18, 2010

I am using jquery.fancybox-1.2.1.js of fancy box in asp.net applicationQ1: In the base page i have datagrid and on combobox. on slection of combobox the datagrid is populated.From the datagrid I open the fancybox when user click on Edit link. I open new page likeIn EditProjectTask.aspx i have the controls in edible mode. Now if user closes the window using default icon provided in fancybox.then if user select some other option from combox the url changes into EditProjectTask?Task= 86Q2: #
From the # datagrid I open the fancybox when user click on Edit link. I open new page likeIn EditProjectTask.aspx i have the controls in edible mode. Now when user updates the the content I want to close the fancybox and also refresh the parent window. I have achieved this using
After update i #But it reloads all the page.Can I use some Ajax call.

View 1 Replies

State Management :: How To Abandon The Session When The User Closes The Browser Window

Jan 7, 2011

How do I abandon the session when the user closes the browser window instead of pressing the logout button in ASP.Net 3.5 application.

View 5 Replies

AJAX :: Modal Poup Closes Unexpectedly - Insert - Edit Or Delete The Data - Doesn't Close Automatically In Gridview

Feb 7, 2011

[Code]....

I can open the modalpopup, can close the popup, but if i click the "edit" button to edit any of rows, the popup closes automatically. If I click again, the "Update" and "Cancel" buttons shows, and after clicking one of those, popup closes again. The above code works, if i use gridview the insert, edit or delete the data, does not close automatically. What may be the cause of this problem.

View 1 Replies

Web Forms :: Click On The Day Within The Calendar Control And Pass A Querystring?

Feb 10, 2011

Is it possible to click on the day within the calendar control and pass a query string. The calendar is database driven.

View 1 Replies

Web Forms :: Click A Date In The Calendar Control Events?

Sep 23, 2010

if i click a date in the calender control events under the clicked date should be populated in the gridview( not for a particular date for all dates in the calender ) in .net

View 3 Replies

AJAX :: Popup With AsyncFileUpload Closes On Button Click?

Mar 4, 2010

I have a AsyncFileUpload control on a greybox popup. There are some processing that happens, and then closes the popup registering javascript as a button click event fires.

If i upload a file with the AsyncFileUpload popup page redirects to itself instead of the parent page. It redirects to the parent page as it supposed to if I dont upload a file using AsyncFileUpload. Another thing I have noticed is if I upload a file using AsyncFileUpload popup gets closed and redirects to self on any button click even without the close script call.

View 3 Replies

Web Forms :: AJAX ModalPopUp Closes After Button Click

Nov 2, 2012

I am using a ModalPopUpExtender in my web page i have set the Target Control Property to some control and Cancel Control Id to some control but the problem is that whenever any control inside the popup postbacks the popup is closed. i dont want to use the update panel to resolve this problem.

View 1 Replies

Web Forms :: How To Open Calendar Control On Image Button Click

Apr 19, 2012

how to open a calendar control in asp.net web form on the image button click and display the date in the textbox

View 1 Replies

AJAX :: Popup With AsyncFileUpload Closes On Button Click - Gets Closed And Redirects To Itself?

Feb 23, 2011

I have a AsyncFileUpload control on a greybox popup. There are some processing that happens, and then closes the popup registering javascript as a button click event fires.

If i upload a file with the AsyncFileUpload popup page redirects to itself instead of the parent page. It redirects to the parent page as it supposed to if I dont upload a file using AsyncFileUpload. Another thing I have noticed is if I upload a file using AsyncFileUpload popup gets closed and redirects to self on any button click even without the close script call.

View 1 Replies

Javascript - .NET Cross Domain Modal Window (window.showModalDialog) - Parameter Value Always "undefined"?

Aug 27, 2010

I have two webpages, parent page .aspx and child page .html.
On parent page I have JavaScript function for invoking child page as modal window via window.showModalDialog.

function viewCourseModal(url) {

var sPars = SomeParameters();
var returnedValue = window.showModalDialog(url, "", sPars);[CODE]...

So when I launch parent window and invoke child modal window, parameter with "someValue" gets returned to the parent window (to modalReadyForTest control) upon clicking the button Button1.It works fine when I have both parent and child pages on the same domain. When I have them on different domains, value of the parameters does not get passed and instead it is always "undefined".Is there any way to have modal window from different domain returning parameter value to parent page? Can those cross domain issues be solved at all or should I try completely different approach?

View 1 Replies

On Close Button Click On Child Window,parent Window Refreshes?

May 20, 2010

Refresh the Parent Window. I open the child window,I want that on close button click on child window,parent window refreshes

Code:

[code]....

I searched all on the net & find the above soln,But its not refreshing.when i click on button1,then some Pop up appears see in Pic(with buttons Retry & Cancel). When i click on Retry again the child window loads Then again i click on button1,again popup appears & so on & on.

View 10 Replies

Treeview - Call Window Form On Click Event Of Node In Tree View Control In 3.5 C#

Feb 23, 2010

in my application i need call new form on click of node in tree view control in asp.net 3.5 c#.

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







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