Hi, I'm trying to use a WebDialog box as part of my Try...Catch statement and can't seem to get the box to open...heres my code. Any help would be appreciated
Me.wdbMsgBox.WindowState = Infragistics.Web.UI.LayoutControls.DialogWindowState.Normal
lblError.Text = (Ex.Message)
End Try
ThanksMarc
Hello Marc,
Thanks for writing. Unfortunately it is a bit hard to tell from the information we have above. Is it possible that you are also setting the Visible property of the WebDialogWindow to False somewhere in code or in the ASPX markup?
I have been trying to reproduce the problem locally, unfortunately without much success. The try / catch logic should have no effect on the flow of code, but just in case, can you hook a debugging breakpoint to make sure that code is executed (and that there no additional code after that that changes the DialogWindowState enum or Visible property?)
Any additional information will surely provide additional clues.
Hi, Thanks for your reply (generic although it is),
Just to expand a little, this is the control detail:
<ig:WebDialogWindow ID="wdbMsgBox" runat="server" DesignTimeMinimize="True" Height="300px" Width="400px" InitialLocation="Centered" WindowState="Hidden"><ContentPane><Template><div><asp:Label ID="lblError" runat="server" Text="Label"></asp:Label></div></Template></ContentPane></ig:WebDialogWindow>
There is no other code involved other than what I have given. If you have indeed managed to get it working i.e. pop up when an error is thrown could you please post the code etcThanksMarc**UPDATE** After debugging and more research it looks like it could be the use of ScriptManager preventing the popup
you might also want to set it up as modal...
sometimes setting it to normal opens the dialog window BEHIND the browser.
something like this...
Infragistics.Web.UI.LayoutControls.DialogWindowState.Normal
Me.WebDialogWindow1.Visible = True
Me.WebDialogWindow1.Modal = True
Hi, No luck with this either - I think has something to with the ScriptManager