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 in the girdview on page 1.
Not sure how to navigate from page 1 to page 2, here is what I have and it seems to work:
Code:
Protected Sub ViewReport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ViewReport.Click
Server.Transfer("ViewComparisonReport.aspx", True)
End Sub
Now, I plan to use the dataset (mySqlDataSet) that I used to fill the gridview to fill my Crystal Report and need make this data set transparent to page 2 where I will bind the data set to crystal report, not sure how to do this but here is what I have:
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
Not sure how to navigate from page 1 to page 2, here is what I have and it seems to work:
Code:
Protected Sub ViewReport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ViewReport.Click
Server.Transfer("ViewComparisonReport.aspx", True)
End Sub
Now, I plan to use the dataset (mySqlDataSet) that I used to fill the gridview to fill my Crystal Report and need make this data set transparent to page 2 where I will bind the data set to crystal report, not sure how to do this but here is what I have:
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