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
Similar Messages:
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
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
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
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
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
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
Nov 16, 2010
I am using MVC2 on VS2010 Express edition. I followed a post by Dino Esposito on UI with JQuery passing data to a dialog from strongly typed views. I can't make the dialog work with modal:true option.Here I have a simple page that includes RenderPartial for a dialog. The dialog is supposed to pop up when a button is clicked. However, if I include modal:true as one of the dialog options, then when the button is clicked nothing happens. The dialog does not pop up. When I remove modal:true from the dialog options then dialog pops up as expected and closed as expected.
View 10 Replies
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
Nov 17, 2010
Currently I have a project where I have a form in ASP.NET that needs a look up service. For example the input below wants a Customer ID, but maybe the user only knows the customers by name.
<input name="CustomerId" type="text" id="CustomerId" />
I'd like to use jQuery UI's modal dialog to append an image to the right of this input, which fires dialog("open") containing the necessary code to look up a customer by name, returning the ID back to the form input upon closing the dialog. This is extremely similar functionality to the Datepicker's icon trigger found here: http://jqueryui.com/demos/datepicker/#icon-trigger .Right now, I have this javascript:
$("#CustomerId").dialog({
autoOpen: false,
modal: true,[code]....
I need to be able to pass the ID of the input element into jQuery, probably using the $(this) selector somehow. I'd like to be able to re-use the same code for multiple elements on the same form that require the customer ID look up. I also don't know how to create this kind of functionality inside the ASP.NET environment because it doesn't fundamentally allow more than one form inside one .aspx page.
View 2 Replies
Nov 22, 2010
What is the easiest way to show logins in a modal dialog? I'd prefer using JQuery but whatever will show up the login page (in a partial?) whenever i decorate a method with [Authorize] would be great.
Ive been searching for the past couple hours and i cant find anything useable.
View 6 Replies
Nov 30, 2010
I have a application that contains a gridview. When a user selects one of the items from the gridview, I want to be able to show a jQuery dialog box that contains a form with some pre-filled information from the selected item from the gridview. Right now I have a div with some html text boxes that is set to be a modal dialog box. The user clicks on it, and the selected item's ID is easily to retrieve. The problem comes when I want to go out to the database, get some of the details, then pre-fill in some of the textboxes and other elements before displaying the dialog box to the user.
An easy comparison is having a user click on an item so that they can submit a form to be processed with some of the items from the selection already filled in. I was wondering what the easiest way to go about this is. Right now I have it so that selecting an item from the gridview uses jQuery to do a Ajax post with the ID to a [WebMethod] in the code behind where it can then go off the database and get all the details of the record. The problem is that for obvious reasons the WebMethod can't magically fill in the fields of the form. I could send back all of the information to the ajax query to fill in, but that also feels pretty messy because there is no real strong connection from the random data I send back and which field they belong to.
A lot of this is pondering out loud, but I am really interested in better understanding how to use jQuery and Ajax within ASP.NET.
View 1 Replies
Jun 22, 2010
I am currently working on creating a ModalPopUp for SharePoint Web Part.I am facing compatibility issues with ModalPopupExtender (with IFrame).
What are the other options available in SharePoint 2010 or ASP.NET for getting a Modal Popup?
Note: I have tried ModalPopupExtender and OpenModalDialog.
View 4 Replies
May 28, 2010
I am using jquery to display modal dialogs thought my app as certain events happen. I have created a seperate partial view that contains the html but i was wondering where best to handle the stylesheet and css registration. One option would be to always have these two resources linked in the head section of the master page, but is the wasteful since it is only needed when a modal is displayed? Or should I put them in the partial view, but if I did this, they would not be added to the head section.
View 2 Replies
Nov 7, 2010
I've put an asp.net button on a modal dialog box that will appear once a certain option is clicked.
I want to call a .net subroutine once the button is clicked as normal but because I'm guessing it's in modal in won't foolw through to the subroutine or the click has no affect.
Is there a way around this?
var dlg = jQuery("#dialog2").dialog({
bgiframe: true,
autoOpen: false,
height: 410,
width: 800,
modal: true,
show: 'Transfer',
hide: 'Transfer',
draggable: true,
resizable: true
});
The button is a standard which doesn't click add go through the appropriate code behind the button.
<div style="width: 743px">
<asp:Button ID="btnNoteSave" runat="server" Text="Save" class="button_class" />
</div>
View 2 Replies
May 4, 2010
Code:
[code]....
Secondly,I want to open the form a Modal Dialog Box,Is It Possible?/
View 6 Replies
Mar 23, 2010
I have a button Import on my page. Upon pressing this button, a modal popup dialog appears where the user can enter path of the import file. I have a required field validator to make sure the user entered the path. And I have there a Submit button. My problem is that validation happens not only when I press the Submit button on the modal popup, but also when I press any button on the page itself, which is wrong.
View 2 Replies
Oct 15, 2010
I am using jQuery dialog in asp.net. It is working fine for me. The problem is when I open the dialog box, I can still work parent page functionality. I don't want that. Just dialog to modal and should not allow focus on parent page.
window.onload = function onloadFunction() {
[Code]....
View 2 Replies
Mar 2, 2011
this is the first time i'm using jQuery dialogs so this question might be somewhat simple but i haven't found answers on this yet.
I'm using ASP.Net Ajax to perform an asynchronous postback when user enters something into a Textbox(actually scanning a barcode). This is working like a charm.Now i need to let the user decide between two options under certain conditions. Therefore i need the postback to decide if this dialog must be shown and what content it has.
Q: How to open a jQuery UI (modal) dialog from serverside, let the user choose an option, postback again to server and handle this decision.
I think i need AjaxControlToolkit.ToolkitScriptManager.RegisterClientScriptBlock to register the script that opens the dialog, am i right? If yes, what script opens the dialog onload?
Can i then postback to server by setting AutoPostback=true on the control(f.e. RadioButtons or a DropDownList)inside the dialog and handling the appropriate events?
What is the best/easiest way to accomplish what i'm trying?
Edit: I considered to encapsulate the dialog into an ASP.Net UserControl and show/hide it. Is this approach recommendable or will it conflict with jQuery in any way?
[Code]....
View 2 Replies
Dec 8, 2010
what i want to do is that , i have html.actionlink and i want when the user click show a ajax modal dialog to it and get the data.
for example in my view INVOICES i have <%html.actionlink("Select Customers","actionresult","controller")%> and i want when user click the link , show the modal dialog who contain the list of customers. after the user click one customers come back to my INVOICES view with the ID of selected customers.
View 3 Replies
Dec 2, 2010
I have a web app that uses window.openModalDialog to display a page. This page has a hyperlink that connects to an HttpHandler to retrieve a file. The link has a target property of "_blank". We've recently implemented Forms Authentication on this site in place of a flaky proprietary solution and we are noticing that now whenever we click on that link we get a pop-up window and the login screen appears.In the authorization section of the web.config we're saying that we don't want to allow anonymous. However, if I add a location element with the URL the handler is associated with, I can hit the breakpoint in the ProcessRequest method because it doesn't care if I'm not logged in. What's odd is that I should be logged in so it seems that the authentication ticket (which isn't expired yet) isn't being accepted in the popup window. If I allow anonymous I can bypass this problem, however the code that retieves the file relies on Session data and it's null. Therefore, either way I can't get this to work.It has been suggested that instead of a modal dialog just use window.open, however I'm reluctant to do that because when this window is open I don't want users accessing the parent window due to several reasons. Is there any way to get around this problem? I don't want to ditch forms auth for the old way because it wasn't secure.
View 1 Replies
May 7, 2015
I have a bootstrap modal pop up that contains Last Name, First Name and Middle Name. And it is inside the update panel alse the button submit. The button submit is triggered as Asynchronous Postback. But when I click the submit button the background of modal pop up is still there.
View 1 Replies
May 17, 2013
1-I want to "when I was click the Show button show Datetime.now in label but but popup will not close" ;
2-When popup open all textboxt empty
3-when popup close ;closeButton will run like Response.Redirect("abc.aspx")
This is my code;
<style type="text/css">#overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background-color: #000;filter:alpha(opacity=70);-moz-opacity:0.7;-khtml-opacity: 0.7;opacity: 0.7;z-index: 100;display: none;}.content a{text-decoration: none;}.popup{width: 100%;margin: 0 auto;display: none;position: fixed;z-index: 101;}.content{min-width: 600px;width: 600px;min-height: 150px;margin: 100px auto;background: #f3f3f3;position: relative;
[Code] ....
View 1 Replies
Feb 22, 2011
I have a page (parent) that open up a popup window using window.open javascript. User will then work on the popup window and the result will be stored in a session variable. When the user close the popup window, how can I put the value of the session variable back to the server control textbox of the parent window?
View 3 Replies
Jul 7, 2010
rl711
You have to use target attribute in form tag:
<form runat=server target=_blank> // new window
or
<form runat=server target=_top> // above all frames
or
<form runat=server target=_parent> //parent frame
or
<form runat=server target=someframe> // a frame by name
This can only work if the Server.Transfer is invoked from within the form such as a button click.
If your Server.Transfer method is in the Page_load event (which isn't a form event), how do you set a target window to Server.Transfer?
View 4 Replies