Web Forms :: Closing Child Pages When Main Parent Closes?
Jul 8, 2010
I have a web app that opens various child windows from one main window. The main window itself changes based on user selections. How do I detect and close any child windows when the main window closes? I suspect I could use the session object to track the instances.
View 3 Replies
Similar Messages:
Jun 25, 2012
I have a web form that contains a dropdownlist which shows list of cities in it. I have an add button on click of which I am opening a Popup window to open a new page that contains a text box where in i am entering new city name and submit button.
I want that after click submit button the window should be closed and on the parent page the dropdownlist gets refreshed with the new value. I am able to do it but the whole page gets postbacked which I do not want. I have added the dropdownlist in the update panel but not able to do the partial postback.
View 1 Replies
Jan 13, 2010
I have a parent page with two data controls. I want to be able to open a child window, do something on it, and when it closes I want to rebind only one of the two data controls on the parent page. I have the control I want to update within an UpdatePanel so would like to call rebind it and call UpdatePanel.Update().
View 2 Replies
Mar 19, 2010
I have three windows:
1st - main window
2nd - child window - it's opened using window.showModalDialog from 1st widnow.
3rd - window - is an ancestor of 1st window and is's opened from 2nd window using window.showModalDialog.
And now what I need to achieve is to open 1, 2 and 3 window. Next after closing the 3rd one, refresh the 2nd one. And after closing the 2nd one, refresh the 1st one.
But there is one more assumption, I don't want to have any post-back during this process.
View 2 Replies
Aug 26, 2010
Simple and blunt: my cascading dropdownlists clear when a postback occurs. Does anyone know a quick way around that?For more information, read on...
I have 5 dropdown lists that define a training class location and line of business: Site, Parent Client, Client, Program, Project I'm trying to build cascading dropdownlists that can work from any direction (i.e. select a site and all other lists are filtered by site...select a project and all other dropdown lists are filtered by project). I've built the SQL Select statement behind the lists that filters (accurately).
View 3 Replies
Apr 13, 2010
How can I "clear" the vendor defined <controls> in my child app's web.config?
Parent Web Config.
[code]....
I have it working for the <tagMapping> section, but <controls> does not support <clear/>.
View 2 Replies
Jan 24, 2010
In my website I have two forms: parent form and child form(dialog box). Their expected behaviour is like this: if clicked on 'show' button on parent form, a dialog form opens that displays a gridview. In dialog form, if clicked on 'select' button it closes
itself and returns value in selected row back to parent form.
To achieve this I write following code (.cs) : in parent form:
void ShowBtn_Click(object sender, EventArgs e)
{
StringBuilder jScript = new StringBuilder(); [code]....
Now problem is: the code in parent .cs works fine, it opens the dialog properly. But when clicked on 'select', instead of returning back to parent, it opens the same dialog again in new window. This newly open window says "Done but error on page" at left bottom.
View 6 Replies
Feb 5, 2010
My default page has a usercontrol that opens up a modal to allow updates. When the user closes the modal window I want the usercontrol that resides on the default page to update.
it looks like this
default.aspx has userControl1
user can open up a modal from userControl1
modal has textboxes for updating
when user closed modal I want to then refresh userControl1 on the default.aspx page without reloading the entire default.aspx page.
View 3 Replies
Jan 28, 2011
I am writing a program in ASP.Net. I need to use page inheritance. I will have a Main Page called "Main" for example. In this form I will have several controls (Any type of control, can be datagrid or any other control). I want to create several other pages that will inherit from this main Page. When I inherit, I want the controls on the main page to appear on the inherited pages. I know that some of you will tell me use a master page, but this is not what I need. I need inheritance. (I suceeded in doing inheritance, but when I do so, the controls do not appear)
View 3 Replies
Feb 7, 2011
i have changed my iframe popup window into as aspx page.so now i how to relaod my parent window.
View 4 Replies
Nov 23, 2013
I want to show a panel with image at the body part of the master page with all other web pages..
View 1 Replies
Apr 27, 2016
I want to write the Customer belongs their product
Customer 1 and their details
then products details Purchased by Customer 1
Customer 2 and their details
then products details Purchased by Customer 2
public class Customer {
public int CustID { get; set; }
public string CustName { get; set; }
public string CustEmail { get; set; }
public string CustContact { get; set; }
public string CustAdd { get; set; }
[Code] .....
View 1 Replies
Jan 13, 2010
I have an ASP.NET web form with a button which opens a new browser window (without leaving the main window) using Javascript when it is clicked. The user is allowed to interact with this new opened window which has a button that closes it but before closing it, some server-side code is executed and the main form shoud be updated according to what the user did in the browser window.
Everything is working just fine except that I do not know how to update the main window. It has a SUB that does it while I am working with this main window alone but I do not know how to call such a SUB after closing the "child" window.
View 4 Replies
Jul 26, 2010
I have a main MasterPage that, as intended, forms the entire layout of my site. It has a bunch of methods common to all pages that use the mastertype, such as EnsureLoggedIn and such.
I want to move on to using nested masterpages to open up better layout options in some of the pages, but I am running into an issue. I get the layout of the nested masterpages fine, but I cannot access any methods in the parent masterpage.
I know my explanation seems a little sparse; I'm not exactly sure how to word what I'm looking for, heh. But here's a short example:
[Code]....
View 6 Replies
May 7, 2010
I have parent form in which i have two buttons. button1 and button2. By clicking on button1 a model popup widow shows. In popup window i have a button like button3 what i need that by cliking on button3 on popup page i want to fire button2 event on parent page and close popup page.
View 1 Replies
Oct 22, 2010
I have table menus (menuid int, text nvarchar, description nvarchar, parentid int, menutype int)
menutype= 1: Service
menutype=2: Product
now i want to display parent/child item group by menutype in dropdownlist control? how can i do it?
View 6 Replies
May 27, 2010
I have a webform (parent) with embedded webgrid(child) which uses sqldatasource. What I wanted to accomplish is to save both the form data and the grid data when the Save button is clicked. I tried to save form data(parent) in sqldatasource1_inserting event, does not work. I think there should be a way to do it, just do not know how.
View 4 Replies
Sep 20, 2015
How can I add a Treeview to the DropDownList for show child and parent record..
View 1 Replies
Apr 26, 2010
Is it possible to refresh parent page from child's child page using javascript.
I have a webform which opens a child window, a button on child window closes the present child window and opens a subchild window. Now a button on subchild should close the window and refresh the parent form.
[code]....
View 3 Replies
Sep 16, 2010
i create a web site using parent and child frame when we login
[URL
this page is opend but we type in address bar
[URL]
this page also open in full explorer but i want this page is not opened when we type in explorer
[URL]
View 3 Replies
Oct 19, 2010
I Have a webpage suppose ParentPage.aspx which contains a iframe. Under iframe i am calling another webpage Childpage.aspx . Now i want to access ParentPage controls from ChildPage and change the property of that control.
how it is possible ?
Below i am writing a code which i am trying. In this code Page.PreviousPage is always null .
[code]....
View 4 Replies
Jan 29, 2011
I am using a collapsible child gridview inside a parent gridview. When I click on the expand image, the data to displayed is put up correctly, however when I make some changes in the child gridview, they seem to be lost!! That is, the changes do not get reflected in the database.
View 3 Replies
Jun 3, 2010
I am able to bind the asp:menu with xml nodes.
My Question is how can I display my child nodes of a particular parent as 2 column flyout menu.
find the screenshot below:
[URL]
View 2 Replies
Sep 20, 2015
C#- bind treeview runtime using dataset and data table
simple example
View 1 Replies
Jan 11, 2011
I have created a search page for web application that will allow a user to search the database based upon employee name or supervisor name. It is a multiple table database that is linked together by an unique employee number column, primary key in people and foreign key in supervisor. I have a parent/ child datalist used to display the record. When searching by the employee name it will return the record correctly if there is a record found. However, if I search by supervisor name and there is no match for the supervisor name, it will return all the records and create the parent datalist with all the employee details there, but the child datalist with the supervisor information is not display as there is no record with that supervisor name.
[code]...
View 1 Replies