Modal Window Is Not Maximizing

Mar 12, 2014

I happen to need this modal window to appear in height and width to be as large as a standard webform... I placed settings in the showdialog function for specific height and widths and nothing happened it maintained the size of a small dialog window with scroll bars vertical ones.

so far this is my javascript code behind the c#

Code:
<script type="text/javascript">
var childwindow ;
function ShowDialog() {
childwindow = window.showModalDialog("CriticalIncidentReport.aspx", 'center: yes;resizable: yes ;status:0;state:maximize');
}
</script>

This is the c# code behind the button click event

Code:
protected void myBtn_Click(Object sender,
EventArgs e)
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "JScript", "ShowDialog();", true);
}

View 3 Replies


Similar Messages:

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

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 :: Modal Pop Up Not Opening JavaScript Window

Feb 25, 2010

I have a modal pop up window (Ajaxcontroltoolkit one) and inside that I am trying to open a normal Java Script new window.

ScriptManager.RegisterClientScriptBlock(this.UpdatePanel1, this.UpdatePanel1.GetType(), "AnyScriptNameYouLike", "window.open('http://www.yourwebsite.com');", true);

But for some reason it does not open.

But it opens fine if I pu the same line of code in a button click event.

View 5 Replies

JQuery :: How To Pass Parameters To Modal Window

Aug 24, 2010

I have a webpart in a page in which there is a gridview(which shows list of customers). When I click on a link button in gridview, I would like to popup a JQuery modal window and fill the popup(this contains textboxes, then a gridview which contains mapped systems for thet customer, and another gridview which contains list of configured reports for that customer) with the details based on the customer name(link) clicked. Here I need to pass the customer Id and customer name parameters based on which I can fill the Jquery modal window.

pass parameters to JQuery modal window in order to fill the contents inside it?

View 1 Replies

C# - How To Pass Collection To Modal Dialog Window

Jan 25, 2011

I want to know, if its possible to pass collection between pages. I mean to say i have a client-side JavaScript modal dialog on which I want to use my collection. Earlier I was using Session[] to share the value, but its becoming evil for me, as it always displays the first value. Any change in value in not updated.

So whenever my pop up is displayed I want the collection to get moved to the Child dialog. From there, i will extract the Collection, do some stuffs and again return it to parent page, preventing postbacks and session management.

View 1 Replies

Best Practice For Modal Window In Web Forms Application?

Feb 24, 2010

On a list page, clicking on one of the items brings up the details in a modal popup window which will have its own functionality (like validation, updating etc). What's the best practice to implement this (not looking for a hack). I see two options here:

Hide the details markup until a list item is clicked at which time, do a ajax request to get the details and populate and show the details section. Have the details section as a separate page by itself. On a list item click, show this page in a modal window (is this even possible?)

View 1 Replies

Web Forms :: Session Timeout In Modal Window?

Dec 30, 2010

I have one modal popup window in which I am loading some event, after session timeout occurs, page in the modal pop window redirects to login page.

What I want achieve is, On session Expiration modal window should disappear and parent page should be redirected to login page.

View 2 Replies

Creating A Modal Window On GridView Select In C#?

Jul 3, 2010

What's the best way to create a pop-up like modal window that shows upon clicking the Select button in GridView?

<asp:CommandField ShowSelectButton="true" ButtonType="Button" SelectText="Select Me" />

Also, bonus if you know how to implement this via jQuery.

View 1 Replies

C# - Session Transfer Between Window And Modal Dialog?

Oct 18, 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

How To Make Modal Popup Window To Stay Visible

Apr 1, 2010

I have a popup window of course through the use of modalpopup extender that searches a record. In the popup window, I have two buttons - a search and a close button. Whenever, I click on the search buttton, the popup window immediately disappear. How am be able to make my modal popup window to stay visible even I click on the search button?

View 2 Replies

C# - Calling Modal Window From Secure Website Links?

Jan 28, 2011

I currently have a asp test site setup which when the user clicks on the login link it opens the standard asp.net login page (login.aspx) within a modal telerik RadWindow. I am calling this page using javascript and this works fine.

The challenge I have now is when a user clicks on a link within the page if that link points to a secure section the login screen loads in the main frame of the site vs. a pop-up. I realize why (aka my js funciton is not being called) my question is to work around this would the correct/acceptible approach be to call a method from each link/button that tests for user authenticaiton? If the user is authenticated then redirect to the page otherwise call the javascript funciton to open the window?

[code]....

View 1 Replies

JQuery :: How To Handle Session Expiration In Modal Window

Jun 24, 2010

I am having an aspx page page1.aspx with a button button1. On click of button1, a modal window popup is displaying using jquery.

The modal popup is displaying another page page2.aspx . I have appended the following line in the load event of all aspx pages to handle the session expiration.So that on expiration of session, it will automaticaly redirect to sessionexpired.aspx page.

Response.AppendHeader(
"Refresh",
Convert.ToString((Session.Timeout * 60) + 10) +
";URL=SessionExpired.aspx");

View 6 Replies

AJAX :: Modal Popup Window - Links / Tutorials?

Aug 11, 2010

I wish to do a modal popup window. I am new to AjaxControlToolkit. provide tutorial links explaining the necessary things to do this in a step by step manner.

View 2 Replies

Web Forms :: Make Modal Popup In Center Of Window?

Jan 17, 2010

I'm using Modal Popup, when user click i need to get the window in center, irrespective of screen size. my screen size is 1280*780 so i adjust the x and y value in modal popup im getting the window in center,but alignment is changed on other screen size. how to make the modal popup in center in all size

View 4 Replies

AJAX :: Progress Indicator In Modal Popup Window?

Jun 9, 2010

I'm trying to use the modal popup window extender to display a 'loading' icon when the user uploads a file. I'm using the following:

Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginReq);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endReq);
function beginReq(sender, args)
{
// shows the Popup
$find(ModalProgress).show();
}
function endReq(sender, args)
{
// shows the Popup
$find(ModalProgress).hide();
}
//END --
// on the .aspx page
<script type="text/javascript" language="javascript" >
var ModalProgress = '<%= modalProgress.ClientID %>';
</script>
<asp:Panel
ID="pnlModal"
CssClass="modalPopup"
Style="display: none"
Width="233px"
runat="server" >
<img alt="Loading Icon" src="../images/redLoading.gif" />

The file is being uploaded, depending on the number of records this may take up to a minute.

</asp:Panel>

which I found on Berseth's site but I cannot get it to work. 'Null' error when it's trying to pop the window. Does anyone out here have another way to do this.

View 5 Replies

Web Forms :: Session Expires When A Modal Window Is Opened?

Jun 4, 2010

I have Page1 having Button1.

Page2 having Button 2 and an ascx control UC1. UC1 has a Button 3. Page2 is a modal dialog ( window.showModalDialog )

on Click of Button1 open Page2(modal dialog).

Page2 has UC1. UC1 has a button B3. On click of B3,instead of directly going to B3_click event, another post back happens. Thereafter opens login.aspx in another browser ( It is losing Session containing UserDetails as well as other session details).

now even If I continue entering Username and password, page2 reloads again in the new browser.

I am totally lost.

1) I do not know why UC1 button click makes another postback and thereafter opens up into another page losing all the sessions!!

I want to retain teh sessions till i go back to page1.

View 6 Replies

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

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

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 After File Download Dialog Window?

Jun 23, 2010

I am exporting a datatable to an excel sheet. When the ExportToExcel event is fire it pops up a "file download dialog" asking if I want to open or save. What I want to do is right after user clicks on open, or save I would like to show a modal popup saying "Do you want to finalize this download?".

Here is some code, it all works except it won't show modal popup after exporting to excel. Why won't mpeFinalizeDownload.Show() run unless I comment out the line above it?

[Code]....

View 3 Replies

C# - Login Time Out When Calling Opening A New Window From Modal Popup?

Jun 15, 2010

I have a weird problem. I have a window, on a button click I open a modal popup (using ModelPopupExtender), that let's you select a few criteria and then click a submit button. On click of submit button, I open a new window (using window.open()) that shows the status of what happened to your submitted request. However, every time this status window is opened, it goes to the login page. I am thinking the modal popup can't pass the authentication cookie to the newly opened window, but I'm not sure.

View 1 Replies

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 :: Launching A Modal Popup Window From Server Code?

May 4, 2010

I copied the code from this tutorial:

[URL] into a page in a test project.

The problem is that when i push the client side button, it shows the popup and immediately refreshes (reseting to initial state of course).

Why is this happening in my new web project, but in that tutorial's demo doesn't?

I'm using IE7, FF3.5, VS2008, latest Ajax Control Toolkit.

View 8 Replies







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