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


Similar Messages:

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

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# - 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

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

MVC :: Query Dialog: Modal:true Option Prevents The Dialog From Rendering?

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

How To Pass A Parameter To The Child Window From Parent Window Using Window.open

Oct 18, 2010

i have an aspx page in which a link in the grid view opens a popup page . the data in the grid view would be dynamic and i need to send the id of the row of grid while calling the child window. i get the id using sender.id, but how would i send this using window .open()?

View 2 Replies

Web Forms :: How To Pass A Session Variable From Child Window To Parent Window

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

Pass Control Value From Parent Window To Popup Window's Code Behind

Apr 16, 2010

I want to receive value from parent's control to popup window's code behind. for example

<asp:RadioButton ID="rdoRate" GroupName="CouponType" value="0" runat="server" checked/>Rate
<asp:RadioButton ID="rdoAmount" GroupName="CouponType" value="1" runat="server"/>dollar

and recive selected radiobutton's value from popup window's code behind. My Solution is make querystring and pass the value.

for example >
window.open(url + ?selectedRadioVal=" + $("#~~checkedradiovalue~~) .. blah balh)
and receive the value by Reqeust.Querystring.Get().

But I can't send very long string. (maybe the url length is limited, right? Is there any good way to solve?

View 1 Replies

Web Forms :: Pass Value From Child Window To Parent Window?

Mar 18, 2010

I have to develope on popup page which is popout from parent page,popup page have one grid with radio button,according to selection of particular radio button of gridview row and user click on select button popup should close and on parent page we have ID value of selected row of popup page.

According that ID value i have to fill some details in Parent page.

Popup
Name Email
RBT ABC A@yahoo.com
RBT DEF B@yahoo.com

SELECT BUTTON

So my query is how to close popup on select button and pass checked row id value to parent page and on parent page how can we get that id value and display some details.

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

Using JQuery UI's Modal Dialog Inside .NET?

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

MVC :: How To Show Logins In A Modal Dialog

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

How To Populate JQuery Modal Dialog

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

C# - Modal Dialog - SharePoint 2010?

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

MVC :: Linking Resources For Modal Dialog?

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

Button On Modal Dialog Not Working?

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

Web Forms :: How To Pass A Window Name To Window.open

Feb 12, 2010

How do I pass a window name to window.open(url, windowname) programmatically? I am using a user control inside aspx forms. I want the windowname to be different, so from each link a separate window opens.

I have an asp:hyperlink in a .ascx form. The code looks like this:

<asp:hyperlink runat="server" id="xx", navigateurl="is set programmatically" onclick="javascrip:return popup(this, 'my window'; " text="xxx"/>
'my window' needs to be a variable.

View 3 Replies

VS 2008 Open The Form A Modal Dialog Box?

May 4, 2010

Code:

[code]....

Secondly,I want to open the form a Modal Dialog Box,Is It Possible?/

View 6 Replies

AJAX :: Modal Popup Dialog Validation?

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

Javascript - How To Make JQuery Dialog Modal

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

Show JQuery Modal Dialog From Serverside?

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

MVC :: Show Ajax Modal Dialog And Get The Data?

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

Security :: FormsAuth Ticket Not Available In Modal Dialog?

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

Web Forms :: Bootstrap Modal Dialog Popup

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







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