.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Shading the parent window of a dialog

Posted By:      Posted Date: October 19, 2010    Points: 0   Category :WPF

I'd like to darken the parent window, before a ShowDialog (and restore after)? Any ideas? I'm scratching my head on this one.

- Josh

View Complete Post

More Related Resource Links

way of calling "javascript function of parent window from child window."

The article way of calling "javascript function of parent window from child window." was added by raja.s on Sunday, June 06, 2010.

Hi,Here i am going to explain how to call the javascript function of a parent window from the child window(pop-Up).Some may know before reading this post.Parent Java Script Function:script language="Javascript" type="text/javascript">

Closing Javascript Modal dialog window after server side event processing


Hello Friends..

Please tell me how to close Javascript ModelDoalog Window.. after Server Side event Processing .

Basically i want close window in  finally Block After sucessfulll Updation.

AMit..... InnocentInnocentInnocentInnocentInnocentInnocentInnocent

Refresh parent window and close popup window.


Hi All,

I've been spent the last couple hours trying to work on this issue. I an creating Facebook Oauth stuff, when i click on parent window. The popup shows the Facebook login, when i logged in with my details, it redirects to my site. But i need to close this popup after returning and refrsh the parent window.

can you please provide me this kind of stuff. i already spent whole day in this... Sealed Cry

If i could solve this then i will go for another logic but stucked on 1st step.



Locating a XUL pop up dialog window

What type of command should I be using in Javascript to reference a XUL pop up window? The pop up is not a browsing window, but a strict dialog window. Document.getBrowser.??? or something??? I need a reference like this to do some kind of innerHTML to the window?hours and hours in google really wears me out!!! ---> Anybody have a few lines of code handy I can either try or use as reference in a google search?

Parent window does not get reloaded - Permission denied error

Hi, When a button from a web form (say parent) is clicked I am opening another form(say child). And once the child completes its processing, it has to reload the parent form and close itself. For this I am calling the below javascript in the child form: function CloseMe() {     window.opener.location.reload(true);    self.close();    } But when the browser tries to execute this javascript code, it fails and throws Permission denied error. Here, the parent and child forms are from different domains. Please throw somelight on this. Thanks!  

WPF Window as Modal Dialog, strange behavior

Hopefully someone has a clue.... My application displays WPF Window as a modal dialog box. The dialog box has a few child user controls, one of which has combo box. When the user clicks this combo box to select... the whole dialog disappears except of the innards of the combo box. So the user only sees the list box of the combo box. Here are the details I got from the  client: The window itself is launched from non WPF application (Lotus Notes). This happens only on a few machines. The OS is Windows XP SP3. There is no issue with the parent handle, windows owner, etc... I've seen this behavior during the development phase, only when running under a debugger.    Thanks, Michael        

i make a web site using frame . A.Text box is in parent window . but i want when frame is load(fram

i make a web site using frame . A.Text box is in  parent window . but i want when frame is load(frame window Coding ) then parent window text is changed l(1)suppose parent window Text. is a when child widow is load thenparent window Text. is b

How to create a wpf-dialog window with constant height?

Good afternoon. I need to create a dialog wpf-window with the constant height. One can see a window height in wpf-editor, and set this value to MinHeight and MaxHeight properties. Here's a simple XAML-code: <Window x:Class="ClassName" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="94" Width="243" MaxHeight="94" MinHeight="94"> <Grid> <Button Content="Button" Height="23" HorizontalAlignment="Left" Name="button1" VerticalAlignment="Top" Width="75" /> <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="146,32,0,0" Name="button2" VerticalAlignment="Top" Width="75" /> </Grid> </Window> However, when running the application, one sees the window has a larger height. What's the bug? Tell me please, how to make a dialog wpf-window with the constant height?

Call parent window Page_Load when child closes

 I have a popup window that I open using  window.showModalDialog('Popup.aspx'); The client enters some information and then clicks a 'Save' button on the Popup window.  At that point I want the popup window to close and refresh the parent window which I though would execute the page_load event on the parent window. Here is the code that I have for the button click on the popup window. window.returnValue = true; window.close(); The popup window closes and it seems like the parent refreshes, but the page_load event on the parent is not called.  I put in a breakpoint to verify.  I need the page_load event to execute.   Thanks in advance for your help, JZ

Refresh Parent Page List after Edit Item Modal Dialog Save/Close

I am calling the Edit Item URL (EditForm.aspx?ID=x&IsDlg=1) via javascript code to bring up the Edit Item Modal Dialog. This works fine and dandy. But what callbackfunction should I invoke after the Save so that the parent list is refreshed? Is there a better way to do it than call reload on the entire parent frame? It almost looks like there should be a way to refresh just the list. Any help appreciated. Thanks, Jake.

Refresh aspx parent Page after closing pop up window

Hello I have a problem with  Refeshing Parant Page  After Closing POPUP. Actually case is i opened POPup.aspx(aspx-Page) on another Profile.aspx page, and i want refresh Profile.aspx after closing   PopUp.aspx. I aleady use this thing but it didnt work..1)window.opener.location.reload();2)window.parent.refresh() 3)window.parent.reload()any one have idea abt this .. plz help me 4 this..

I want to open a web page (.aspx page,child window from parent window) without titlebar how can we d


Hi All,

i have some special requirement like , i want to open a web page (child page) without a title bar for this i am following the below approach but it is not working, to open child window from parent window i am calling this javascript function to the of href of anchor tag...

function OpenChildWindow()

but the child window is opened with titlebar, but i don`t want any titlebar.

the titlebar property i was used in the above method is not working why?

how can we do this, can anybody help me...


Burepalli V S Rao.

Send values to parent window on gridview click event


Hello all,

I have a form, which contains 2 textboxes. When i click on the first textbox, i have to open a child window (tool), that contains a gridview control with 2 columns (corresponding to the 2 textboxes). When the user clicks on any row in the gridview, it should send back the 2 column values back to the parent window to the corresponding 2 textboxes. Can anyone help me on how do i achieve this?

I can open the child window and get back the values using window.opener method in JS. 

But can anyone help on how to bind the JS code to the onClick of every row in the gridview. How can i activate the OnClick event of every row/alternating row item of the gridview and bind the JS code and pass each column value to that JS method? The no of columns in the gridview can vary depending upon the data? So in that case, i have to have a collection to be passed to JS code that can contain n number of column values.

Please help.

i want to disable the entire parent window when the child window is opened?



 i am using the master page from the master page i am opening the child window.so, when ever i opened the child window i want to disable the entire parent window(all the controls present in the parent page) .how can we do it.


Burepalli V S Rao.

Slightly different issue: SetFocus from control to WPF parent window in C#...


I've just spent about an hour seaarching for something that should be easy to find with the question: How to set focus on a WPF window.

I have a StatusBar item. When the mouse leaves that item, I need to set the focus back to the StatusBarItem's parent window.

I've tried everything I can think of.  Sorry to be so dense, but I am still a WPF/C# newbie.

Please advise.


-- Mike

How can i refresh the parent window of a webpage ?


Hi all,

I have tried lot of different methods to refresh the parent webpage of a pop up window.

All of my methods failed for the moment using javascript .

Basically i am opening a new window from a Sharepoint webpage.

When I click "submit" on the op up window the sharepoint webpage should be refresh.

So far i have to do manually F5.

How can i 4refresh the parent webpage  ?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend