Advertisement

05.12.2008 at 05:14PM PDT, ID: 23396358
[x]
Attachment Details

How can I use one webpage to show several reports once a time?

Asked by aslyas in .NET Framework 2.x, Programming for ASP.NET, Visual Studio

Tags: ,

I am migratting a vb6 application to a asp.net application, in the original app I used a simple form with CRViewer control and it receives the data to show and also the report name.
I need to traslate it to asp.net, but I don't find the way to use only one webpage with Crystal Viewer control.
I am trying to  handle the PreviousPage property to get the dataset and the report name, but I have lost the previouspage property, I tryied to use tye viewstate("prevpage"), but when I try to make a select case of the previouspage to identify the data and the report name I got an Error:
This is the code where I am trying to have reference to previous page:
:
If PreviousPage IsNot Nothing Then
            If ViewState("pagPrevia") Is Nothing Then
                ViewState("pagPrevia") = PreviousPage.ToString.Trim
            Else
                pagPrevia = ViewState("pagPrevia")
            End If
            Select Case ViewState("pagPrevia").ToString
                Case Is = "ASP.paginstalaciones_aspx"
                    pagRegresar = "pagInstalaciones.aspx"
                Case Is = "ASP.plantas_aspx"
                    pagRegresar = "pagPlantas.aspx"
            End Select
:
The exception gotten is invalidcastexception:
It cann't convert an object type 'ASP.pagplantas_aspx' to type 'ASP.paginstalaciones_aspx'.

Start Free Trial
[+][-]05.12.2008 at 06:15PM PDT, ID: 21551609

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 06:18PM PDT, ID: 21551625

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 06:01AM PDT, ID: 21554567

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 07:51AM PDT, ID: 21555623

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 2.x, Programming for ASP.NET, Visual Studio
Tags: ASP.NET2.0 CRXI, IExplorer 7
Sign Up Now!
Solution Provided By: ororiole
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628