I have a web page that displays a gridview (page 1). On this page I have a button saying "View Report" (link to page 2) and the intent is to render a new page showing a crystal report with same content as the girdview in page 1.
Here is how I get from page 1 to page 2:
Code:
Protected Sub ViewReport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ViewReport.Click
Server.Transfer("ViewComparisonReport.aspx", True)
End Sub
I plan to use the same dataset that I used to fill the gridview to fill my Crystal Report
Code:
Dim myDataSet As New Data.DataSet
myDataSet = Request.Form("mySqlDataSet")
I get an error: "Value of type 'String' cannot be converted to System.Data.Datset"