I’m trying to get an aspx page where there’s a reportviewer box containing a sql reporting services report that needs a variable. The variable comes from a previous .aspx page (page a) and I’ve gotten the variable to go over to the sql report page (page . I can see that the variable is on the URL address on page b; but for the life of me, I can’t figure out how to get that variable to feed into the report.
Here’s sort of what I have behind the button from page a to page b(QalcReport.aspx):
Private Sub btnReport(Byval sender as System.Object, byVal e as System.EventArgs)
dim strRef as string
strRef = Request.QueryString(0)
response.Redirect(“QalcReport.aspx?rs:Command=Render&QuoteKey=” & strRef)
end sub
I know this probably works in asp.net 2.0 and above, but we can’t go there yet. Any suggestions?