ShowModalDialog On Opening Popup

Nov 28, 2011

i have two webforms (webform1, webform2). webform 1 has one asp button and webform2 has one aspbutton control. My requirement is i need to show webform as modal dialog when i click on webform1's button.

The problem i am facing here is when i click the form1 button it opens the form2 as dialog well and good. the problem is if i click the button inside the form 2 it opens the form2 dialog again. i have not written any code for form2 button.

below is my code :

function OnClickCopyMaterial() {
window.showModalDialog("./CommonScreens/Materialtest.aspx",'','');
}
<asp:ImageButton ID="imgbtnCopyMaterial" runat="server" ImageUrl="~/assets/images/button_CloneMaterialsSet.png"
OnClientClick="return OnClickCopyMaterial();"

View 1 Replies


Similar Messages:

Web Forms :: Popup Not Opening In FF?

Feb 12, 2010

i am having a edit button in a popup and when i click on edit button it opens the popup inorder to update the details.

but in FF wen i click on edit button its not opening the popup but works fine in IE.

View 3 Replies

How To Print Webpage Without Opening A Popup Window

Apr 16, 2010

I want to print a web page using javascript. But I do not want to open the page as a popup windows. How can I print directally a web page like 'mypage.aspx' using javascript window.print method without opening it as a popup window?

Also the condition is 'I dont want to use any Activex for this'

View 5 Replies

Web Forms :: Opening New Window Popup Through Code Behind?

Apr 29, 2010

I have a asp.net linkButton on my page. on click of link button i hv written a code on linkbutton click event. after executing that code lastly i want to open new window. I had used a following code for that.

//Script to pass to the RegisterClientScriptBlock method

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

JQuery :: Getting Error In Opening Aspx Page In Modal Popup

Jul 2, 2010

I am trying to open aspx page in jquery modal popup. Its opening fine, but if i am firing any event of that page(page which is inside modal popup) i am getting javascript error:

Microsoft JScript runtime error: 'theForm.elements.length' is null or not an object

View 2 Replies

AJAX :: Add Bootstrap Model Popup Opening And Closing Effects On ModelPopup Extender

Mar 26, 2016

How to add opening and closing effects of bootstrap model popup on Modelpopup Extender. I have tried but not solved this issue....

Look at  this bootstrap model popup link .it open from top when click on demo button [URL] ....

View 1 Replies

Javascript - IE - Get Popup's Opening Window When Using Window.open (url)?

Sep 23, 2010

we are running a click-to-call service, my idea is basically like this: website have a link on their page, when the link is clicked, a web page(say it is popup.aspx) hosted on our server is popup, user can input their phone number, and click "call me" button to let the website call him. In the button click event, I want to get Request.UrlReferrer, then query the db to get website's phone. But in IE, Request.UrlReferrer is null(firefox is ok, not test chrome yet),my question is how to get opening window' url in IE? we put popup.aspx on our server because

our client website is not force to use asp.net. we have the control what we put on the popup window, and can modify the page just from our side, if we put the pop window on our partner's side, if we have 100 partner, and we change the page's design, we will notify everyone of them to change this, change that. we can implement a statics system to know how popup a day, which site is most popular,etc

View 1 Replies

Window.showModalDialog() Using Javascript?

Aug 24, 2010

I am opening a child window using window.showModalDialog() method. In the child page i have few server side controls whenever a postback happens the child page opens in a new window.

I have also set in my head tag,but it is not working.

<base target ="_self/>

For example
In Page 1: i have an anchor on whose click i open a child page(page2).
In my child page Page2: I have an asp.net button to search based on the criteria. when i enter the criteria and click search, the search results are show in new window rather then the same window.

similar to the post[URL]

View 2 Replies

Javascript - Window.showModalDialog And Postback Button

Feb 2, 2011

I have two pages A.aspx and B.aspx Page A.aspx opens B.aspx as modal popup by javascript function window.showModalDialog("B.aspx"); Page B.aspx has two text boxes (Login, Password), <asp:Button> control and button click event in server code. Problem is when I click on the submit button it opens me B.aspx page in new third window How is it possible to not open new window on submit button.

View 3 Replies

Web Forms :: Page Reference With Window.ShowModalDialog?

Feb 13, 2011

I have created 2 webpages call Default.aspx and Detail.Aspx. On Default.aspx, i had written a javascript to popup Detail.aspx through windows.ShowModalDialog.

Now how do i get reference to Default.aspx page within detail.aspx ? (like in Server.transfer function, i can just call this.Page.PreviousPage).

Reason for getting Page Reference rather than value reference, is, i can call all property and class within default.aspx.

View 5 Replies

Equivalent Cross-browser Solutions For Window.showModalDialog?

Feb 9, 2010

Whar are equivalent cross-browser solutions for window.showModalDialog? showModalDialog introduced in IE and FF 3.

View 4 Replies

Web Forms :: How To Display A Single Table In "showModalDialog(...)" Out Of Many - Present On Same Asp Page

Dec 22, 2010

I want to display only single table in pop up window out of many tables present on my page. i have 3 check boxes.When user checks those check boxes and clicks on "Generate report Button" then i want to display a static table in pop up window according to the selected conditions.. these static tables are already present on the page but are hidden..so i want to make them visible and show in showModalDialog(...)"

how can i do it.???

my page is like this

checkbox1
checkbox2
checkbox3
Generate Report Button
table 1 visible=false;
table 2 visible=false;
table 3 visible=false;

View 1 Replies

Using The Javascript To Open A Child Window Using Window.showModaldialog?

Sep 24, 2010

I am using the javascript to open a child window using window.showModaldialog(), i have retuen a value from the child page is working fine in IE and firefox but is not working in chrome browser, is there any work around or alternative for it to work in chrome as well.

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

AJAX :: To Authenticate A User Using Model Popup Extender / Model Popup Extender Popup Panel Keep Visible

Feb 18, 2010

I want to authenticate a user using model popup extender. So I wrote a program to do this. Everything OK when user enter the correct details. But user enters the wrong detail, it should shows in a lablel in a popup panel. It shows; but the problem is it close the popup . But I want to keep the popup if the user enters the wrong details. How can I do this?

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

Popup ASPX Page Without Network Guys To Turn Off Popup Blocker In IE8

Aug 24, 2011

I want to add a pop-up aspx page without network guys to turn off pop-up blocker in IE8 of client pc. Which way to use, use javascript or Ajax?

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

Conditional Popup Box In Vb.net & Asp / Generate A Popup That Informs The User That Certain Values?

Jan 22, 2010

I'm working on a piece of code at the moment that allows the user to enter values into fields. Once the user clicks on the 'save' button I am checking those fields against certain conditions (essentially calling a bunch of stored procedures to assess the values). If any of these 'rules' are met, I need to generate a popup that informs the user that certain values need to be fixed before they can continue for some of the conditions, and for others just to inform them of what conditions may need their attention.

The main thing I need help with is, how do I generate a popup box in my codebehind if the conditions are met?

View 1 Replies

AJAX :: Panel And Popup Extender Can Show The Popup But It Is Not Movable?

Jan 13, 2010

I wish to write a modal dialog box for my project, similar to this http://obout.com/editor_new/howto_sc.aspx.Which is very simple:When a user click on a button,the page will make a call to a web service and when it is done,a Movable Modal Dialog box will show and populated with my data, along with buttons and scripts for those buttons.It seems that the panel and popup extender can show the popup but it is not movable.Should I do it with AJAX tool kit or using pure Javascript, I see a few sample on the web, but it is kind OF complicated.

View 5 Replies

Popup After Updatepanel Postback Is Blocked By Popup Block?

Oct 20, 2010

I make a polling and want to popup the result immediately by window.open function after partial postback (updatepanel). But the popup is blocked by popup blocker. How can I fix it?

Here is my code:

[code]....

View 1 Replies

Web Forms :: Popup In The Middle Of The Function And After Selecting The Value In Popup?

Aug 9, 2010

I need to open a popup in the middle of my function, and in the popup i have the gridview control, i need to select one row in the gridview and after closing the popup it should come back to the same function and to same point where i opened the popup. i am using the model popup but this popup is populating after executing all the function, but i need to select one value and need to continue my function

View 3 Replies







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