- While running the Microsoft Visual Studio 2008 Application, the first page of the Crystal Report can be seen properly.
- However, when navigated to the second page, it asks for the database credentials.
- Microsoft Visual Studio 2008
- Crystal Reports 2008
- Page navigation causes a PostBack.
With every PostBack that is, request to a server for a page, a new instance of the Web page class is created, since web applications are stateless
Due to this all the information retained by page is lost.
- In order to preserve state for each user irrespective of page navigation, sessions can be used.
- It is a best way of persisting the ReportClientDocument or the ReportDocument object model, if the report has been encapsulated within either of them.
- Put the Report object or the ReportDocumentObject in a session variable.
- For more information on session, see the following articles:
- Persisting Crystal Reports .NET web applications - I
- Persisting Crystal Reports .NET web applications - II
- Why should I store Report's object in HttpSession?
Database Logon prompt, Visual Studio 2008, Crystal Reports 2008 , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem