You can use a session variable that will set if the SQL connection fails and vice versa. then use SpawnDialog to display a pop-up dialog box with an error message. Example:
<Publish Event="SpawnDialog" Value="InvalidConn">DBCONNACCEPTED = "0"</Publish>
Here InvalidConn is a dialogue
<Dialog Id="InvalidConn" Width="260" Height="120" Title="[ProductName]"> <Control Id="OK" Type="PushButton" X="102" Y="90" Width="56" Height="17" Default="yes" Cancel="yes" Text="OK"> <Publish Event="EndDialog" Value="Return">1</Publish> </Control> <Control Id="Text" Type="Text" X="48" Y="22" Width="194" Height="60" Text="[ErrorText]" /> <Control Id="Icon" Type="Icon" X="15" Y="15" Width="24" Height="24" ToolTip="Information icon" FixedSize="yes" IconSize="32" Text="WixUI_Ico_Info" /> </Dialog>
Vinay kumar
source share