The jQuery UI modal dialogs are great add-ons but they don’t necessary fit well when you just have to show a wait message. There are issues with removing the title bar and styling the dialog. BlockUI is another alternative but I find it little hard to style using css. This is how I came up with a wait dialog. I am using two divs here. First div will cover the page content in such a way that the content is still visible but user cannot perform any action. For this, I need a div with near transparent background (opacity of 0.8). #loading-div-background { display : none ; position : fixed ; top : 0 ; left : 0 ; background : black ; width : 100% ; height : 100% ; } The second div will contain an animated image and it can be positioned centrally in the page. #loading-div { width : 300px ; height : 200px ; background-color
If you are working on a Silverlight application, it's very imperative that you will end up wanting to assess a control from a design template. Let's say I have a template where a CheckBox control is defined and if I want to access this control in my code behind, there is no direct way to do it. ... < ControlTemplate .. > < Grid >... < CheckBox x : Name ="chkAll" ... /> </ Grid > </ ControlTemplate /> ... The following method will recursively look for this control hiding anywhere in the control template against its name and return it when found. private object GetChildControl( DependencyObject parent, string name) { Object control = null ; int count = VisualTreeHelper.GetChildrenCount(parent); for ( int counter = 0; counter < count; counter++) { control = VisualTreeHelper.GetChild(parent, counter); //name supplied then Return Control if t