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