Disabling "Are you sure you want to exit" dialog in DataHub WebView
When I close my WebView tab in my browser I always get a pop up asking me if I am sure I want to leave. Is there any way I can disable this pop up, or ask me only when I have actually made changes on the page?
This is most definitely select-able. There is a Initialization parameter called ShowExitNotification that defaults to "Always" but can also be set to "Never" or "UnsavedChanges". To edit this parameter:
- Make a copy of the DataHubWebView.asp page found at C:\Program Files (x86)\Cogent\Cogent DataHub\Plugin\WebServer\html\Silverlight
- Open your copy and locate the initParams list. This piece should look something like:
<param name="initParams" value="<%= initparams %>">
This should be line 50 on the default document if there have been no other changes made. - Edit this line to read:
<param name="initParams" value="<%= initparams %>,ShowExitConfirmation=Never">
The line above will prevent all exit confirmation popups.