Hi all!
In our WebApplication we present the reports by opening them in a new window.
The opening-process of the new window is done by using the following code:
Shared Sub RegisterOpenPreview(ByVal openElement As System.Web.UI.WebControls.WebControl, _
ByVal reportName As String)
openElement.Attributes.Add("OnClick", "window.open('frm_report.htm?Reportname=" + reportName + "')")
End Sub
If we don't open the window with the above code it is recognized as a popup and therefore blocked (by default).
The problem we are facing now is that validation (required field validator,...) is not done properly - the "blank" window opens and the validation result is shown in the main window. This can be very confusing.
The correct process should be:input of the values
click on the preview button which possesses the OnClick attribute (see above)
the selection is made and the result is stored in a session variable (dataset for the report)
the new window uses this session variable and displays the correct report
If the user doesn't enter all the required values the new window also opens and displays a blank report. If it is closed the user recognized the error message (missing values,...) on the "input form".
Any suggestions ;-)
TIA
robert.oh.