Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Attributes.Add and Validation
Message
From
14/04/2005 03:13:45
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Attributes.Add and Validation
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01004495
Message ID:
01004495
Views:
56
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.
  • Reply
    Map
    View

    Click here to load this message in the networking platform