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


Similar Messages:

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

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

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

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

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 :: Redirect To Login Modal Popup Instead Of Login Page In Forms Authentication

Dec 1, 2010

I have my website in which there are free links and links that require login. Free links open even if the user is not logged in. But in case of links that require login, redirect to login.aspx specified in Web.Config in loginURL tag.

I want some way to override this and show Ajax modal popup (Ajax extender toolkit) with login control for only thos links that require login (not for the free links).

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

Web Forms :: How To Open A Popup Window Automatically At Some Time Interval Of Time

Sep 3, 2010

in my application i need to generate/open a popup window automatically at some interval of time, when the user is working at some page in the application, like a alert message

the popup window contains some information which should take from the database,

and the information should be updated automatically when the popup window opens,

i am developing my application with c#.

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

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

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

Calling And Open Popup Window Simultaneously On Google Chrome?

Mar 11, 2011

As the part of C#.net project I have to call one function and after that open a pop up window from a button click. In Internet Explorer I can done this successfully but the same code not working on Google Chrome. The code is adding below.

protected void btnaddtogroup_Click(object sender, EventArgse)
{
fetchaddressid();
string strScript = "<script language=javascript>OpenPopup();</script>";
Page.RegisterStartupScript("callTest", strScript);
}

View 3 Replies

AJAX :: External Javascript Not Called While Calling It From A Control Inside Modal Popup?

Mar 27, 2010

I am getting an error while calling a javascript from a dropdownlist which is placed inside a modal pop-up panel. if i am ebeding a small script like onchange="javascript:alert('hello');", it works fine. But if i m using <script> </script> for embeding a javascript its showing 'object doesn't support this property' error. when i debugged it the compiler does not get into the javascript function.

Below is a screenshot of that page.

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

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

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

AJAX :: Web Forms Running Inside A Modal Popup Window?

Jan 7, 2010

For the past couple of days, I've been scouring the Internet looking for a good solution, but it seems all of the examples I'm finding have one or more drawbacks. I've looked at various javascript, jQuery, and AJAX Control Toolkit ModalPopup code and I'm not yet satisfied. I have a web form that does postbacks to update the database and I want it to run in a window such that the user cannot return to the page from which it was launched until it has been closed. I would also like to be able to refresh all or parts of the launching page from the popup page when needed before closing it.

If anyone has successfully implemented something like this, I would be very interested in seeing the particulars in how you made it work.

View 3 Replies







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