Disabling Parent Page When Child Page Is Loaded?

Jul 14, 2010

I have to disable our parent page(Complete gray out and non functioning) when child page is loaded. Once I close child page then I could perform any action at my parent page.

I can not use Div at my parent page because it may be many page so i have to controlled it from child page only.

View 2 Replies


Similar Messages:

Possible To Refresh Parent Page From Child's Child Page Using Javascript?

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

Possible To Call A Server-side Event On A Parent Page When A Child Page Closes

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

C# - How To Access Hidden Field Of Parent Page From Child Page.

Aug 16, 2010

In my ASP.NET main page I have one hidden field and and one button. When the user clicks the button I am showing the pop up (child page). I need to access a Hidden field while the pop up is loading. How could I access the Hidden field using c#?

View 2 Replies

Web Forms :: How To Close Child And Parent Page And Redirect To New Page

Oct 27, 2010

Following is my requirement :

I have 3 asp.net web pages. From the 1st page i am opening showmoadlDialog(2nd page) in which(2nd page) i am storing some value in session(Ineed to do this here only) and checking some count which is coming from database, If count is Zero it will display message but if some value is there and then if i click on Ok button it will redirect to 3rd page. And close the 1st and 2nd Page.

how to do this ?

When i am clicking on Ok button it is showing some cofirmation message(Do you want to close this window) but this i dont want.

View 9 Replies

Passing An Array From Child Page To Parent Page?

Mar 15, 2010

I have a listbox containing a list of the datas In the child page. Now, if a user selects a multiple number of the items of the listbox, i have to pass all of them through the session.

So, i want to create an array in the child page and pass the values in the session and in the form of an array to the parent page.

View 16 Replies

Web Forms :: Passing Value From Child Page To Parent Page?

Jan 11, 2011

In the parent page i'm displaying all the user details and one of the detail is the list of accessible clients in a list box. the clients can be removed or added using the add or remove images next to the list box.

Clicking on the Add image will show you the list of available clients in a new page(child) and also showing currently available clients to the user with checked status.

Let me explain how the available clients for the user is displayed in the child page. In the parent page load on the 'Add' image 'OnClientClick' i'm passing the ClientId of a hidden field in which all the selected clients for a user is stored.

The problem i'm facing here is when i altered the selected clients in the child page and clicking on the OK button will change the value of the listbox in parent page using the clientID of the listbox which i'm passing, but if i once again click the 'Add' button it shows the original values which is stored at the time of parent page load. The problem is i'm not doing any postback here so that the original values registered during 'OnClientClick'of 'Add' button is not altered.

View 2 Replies

Web Forms :: Open The Child Page Into Parent Page?

Jun 3, 2010

Any out there who knows how to open the child page into parent page,

suppose if i have page say Default.aspx ,and one anchor in this page,WHen i click on the anchor

let say <a href="Content.aspx"></a> ,want to display the content of page Content.aspx into the panel of Default.aspx .

View 4 Replies

Web Forms :: Redirect Parent Page To Error Page If Error Occurs In IFRAME Child Page

May 7, 2015

I have a data driven asp.net website with frames on the top, left, right and center screen.  If a page generates an error on any of the frames, I want to redirect the whole site back to the Default.aspx.  Currently, when a frame page errors in one of the frames, that frame gets the error pages.  Site is URL....  Is this something that can be handled?

View 1 Replies

C# - Updating Parent Page From Dynamically Loaded User Control

Feb 20, 2011

Hosting page:

protected void Page_Load(object sender, EventArgs e)
{
LoadMyControl(Parameters); //Do it every page load to preserve it's state
}
protected void LoadMyControl(string parameters)
{
plchld.Controls.Clear();
Control userControl = LoadControl("TheUserControl.ascx");
userControl.ID = "userControl1";
plchld.Controls.Add(userControl);
}

Now inside this control, when a button is clicked I want to update ,let's say a Label on the hosting page.
What is the best way to do it? Custom event?

View 1 Replies

Web Forms :: Dynamically Loaded UserControl - Receiving Click Event To Parent Page

Oct 9, 2010

In a page , when I click a button 'showDialog' I am loading the user control dynamically in a dialog. I am linking to the event in the user control as explained below. The parent page is not receiving this event.

Button_Click(){
UseControl1 gc = dlg.LoadContent(:UserControl1.csx);
gc.CausePostback += new EventHandler(execute_CausePostback());}
execute_CausePostback(){
In UserControl class after clicking the submit button
Submit_Click(){
saveRecord();
raise event CausePostBack();

View 4 Replies

C# - How To Refresh A Parent Page When Child Window Is Closed

Feb 21, 2011

how to refresh a parent page when child window is closed.

View 2 Replies

UserControl - Accessing A Child Control In The Parent Page?

Nov 3, 2010

If for example my userControl has a CheckBox called IsGreatCoder and the userControl is embedded in a main page (parent page).

I normally have gained access to the IsGreatCoder.Checked value in the main-page by exposing it through a public property that I have to manually write (say "IsAGreatCoder").

If UserControl is included in the main page as "userControl1", then I would access it as "userControl1.IsAGreatCoder".

But, I was wondering if there was anyway to declare the UserControl such that all the UI controls added to it were declared as being public, that way allowing me to gain access to the actual controls in the main page (the parent).

Essentially I would like to be able do something like userControl1.IsGreatCoder.Checked instead of having to implement a property.

The reason I want to do this is that I want to have access to many more of the check-box's properties and it would be a pain to implement each one as a public property.

View 1 Replies

C# - Call Child Iframe Method From Parent Aspx Page?

Jul 26, 2010

I've created one aspx page Default.aspx. It contains iframe with child.aspx. File Child.cs contains web methods which should be called by parent page.

As I understand I need to receive the instance of Child class so then I'll be able to them call. How can I make this?

Default.aspx (Parent page)

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Parent_Child_Iframe._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>.....

So How I can call getResultData () from Child.aspx.cs by clicking Button on the parent page.

The main difficulty is that I can't use Javascript to collect the information from TextBoxes because the task is more complicated and I can use only server methods.

View 1 Replies

Web Forms :: How Open A Website Page Created By Using Parent And Child Frame

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

Web Forms :: Find Control Of Parent Webpage From Child Page Under Iframe?

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

AJAX :: How To Refresh Parent Page Details By Keeping Child Window Open

Apr 28, 2010

I have a screen where on filter icon click on a column i need to show a popup screen or a div looks like popup and in which will have list of check boxes with distinct values of all rows of column one (i.e. the data of popup is like below). All these check boxes are dynamically generated controls.

checkboxcontrol Data1
checkboxcontrol Data2
checkboxcontrol Data3

When user click on any of the above check boxes the parent grid should get refreshed with the filtered data and popup or div tag looks like popup should stay and should not be closed. How do i do this?

The main screen has details like below

Data1 Column2Data Column3Data
Data2 123Data Column3Data
Data2 Column2Data Column3Data
Data3 Column2Data Column3Data

How to refresh my parent page details by keeping my child div tag open or child window open? What is better approach whether to create server side div tag or a modal popup window?

[Code]....

View 4 Replies

Web Forms :: Newly Added Data In The Child Window Is Not Reflecting In The Parent Page?

Nov 17, 2010

I am opening a new window on clicking the button using folowing code

[Code]....

In a newly open window their is a form. on clicking the Save button i am cloging the clild window and refereshing the parent page using below mention code

Page.ClientScript.RegisterStartupScript(this.GetType(), "close", "<script language=javascript>window.opener.location.reload(true);self.close();</script>"); Upto here everything is fine. but the newly added data in the child window is not reflecting in the parent page.

[Code]....

View 5 Replies

Web Forms :: Refresh DropDownList On Parent Page When Popup Child Updates Data Or It Closes

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

Forms Data Controls :: Pass Value From Child (popup Window) To Textbox Within Listview In Parent Page

May 25, 2010

I have a listview that has n rows.

Within the EditItemTemplate and InsertItemTemplate I have a cell that has a textbox and a button.

When the button is clicked a popup window is shown, where the user can upload a picture. The name of the uploaded picture is retrieved.

Now I want to send that picture name back to the textbox within the listviews EditItemTemplate or/and InsertItemTemplate (that is ofcourse one at a time depending on what the user is doing, inserting or editing a row).

The code I have written so far looks like this. The below code has been abbreviated

[Code]....

The code behind looks like this (also abbreviated). Actually I don't think the code behind is needed, since its mainly javascript from the popup window (child page), but nevertheless here it goes.

[Code]....

And at last the child page / popup page.

Well there is not anything to see here, cause I'm using the Telerik RAD upload control, which is doing everything for me.

However the line below may be of interest. Here I'm taking the name of the uploaded file (picture) and printing it to a label.

[URL]

View 2 Replies

AJAX :: Web User Control Loaded Into PlaceHolder Control Causing Full Postback On Parent Page?

Jun 1, 2010

In my default.aspx page I have a PlaceHolder control within an UpdatePanel. In this placeholder control I will dynamically load a web user control, which is just a form with a submit button. On this user control, I have the form within an update panel and I have the "Submit" button's Click Event added to the triggers.

When I submit the form, the UpdatePanel on the web user control nor the update panel on the default.aspx page are capturing the post back, thus causing a full post back which refreshes my page.

how to capture this post so its rendered in Ajax and not a full post back?

View 1 Replies

VS 2010 - Master / Child Page Layout - Embed Third Party Website As Child Page

Aug 29, 2011

I have a web application that uses the master/child page layout you get by default (at least in a VS2010 web project). The Masterpage has a NavigationMenu, each item on that NavigationMenu has a NavigateUrl that looks like "~/Pages/MyPage.aspx". This automatically opens 'MyPage' in the Content of the Masterpage, so that the master page with menu and header etc stays visible.

Now, the client has a guestbook on her old website (I'm basically rebuilding her website, adding the ability for her to upload new content in her browser), and she wants to keep it. This guestbook is from a 'free guestbook' third party website, over which I have no control. It's simply a website in the form [URL] .... which shows the guestbook for a user 'Username'.

In her old website, I was using frames, so the menu on the left side was in a different frame, and I would simply open the third party website in the center frame. That would create the illusion that the guestbook was on her site, while it was actually a completely different website in a separate frame.

In my new website I'm no longer using frames, but the master/child layout as explained. Is it still possible to 'host' or 'embed' this third party website as a 'child' of the master page?

I tried just putting the url to the guestbook in the NavigateUrl of a NavigationMenu item, but that doesn't work, it just navigates to the third party website and doesn't embed it in any way.

View 6 Replies

5 Cascading Dropdowns (Parent To Child And Child To Parent)?

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

.net - Disabling Authentication For A Single Aspx Page (custom Error Page)?

Mar 29, 2010

I am using a custom error page in IIS 6:<customErrors redirectMode="ResponseRedirect" mode="On" defaultRedirect="Error2.aspx"/>I want to disable authentication for the custom error page because the error being raised is related to an authentication module and I don't want to get into an infinite loop and I want to display a clean error page to the user. I have been trying the following configuration to do that.

<location path="Error2.aspx">
<system.web>
<authentication mode="None"/>

[code]...

View 3 Replies

Page Life Cycle Sequence Between Master Page And Child Page And User Control?

Jun 4, 2010

I want to share a common page load and page init events sequence between Master page and child page and User Control as described below:

Let us have the following components:-

1. TestMaster.master -> It is the master page

2. TestChild.aspx -> It is the Child page

3. TestUserContrl.ascx -> It is the UserControl present within the TestMaster.master page.
[code]...

View 6 Replies







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