Click here to Skip to main content
15,616,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Purchase Order Number have some backslash so that way not passing the parameter in Crystal report .. how to slove this problem
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If rdbPO.Checked = True And ddl_PO_Cod.SelectedValue.ToString <> -1 Then
        btnPrint.Attributes.Add("onclick", "'Reports.aspx?rptid=11&val=" & ddl_PO_Cod.SelectedValue.ToString & "','','location=0,resizable=0,ScrollBars=1,statusbar=1,width=980,height=800,left=20,top=10,moveable=0') ;return false")
    End If
End Sub

Reports.aspx code

iam using multiple reports so iam using Case
Dim rptid As Integer = Request.QueryString("rptid")
Select Case (rptid)
    Case "11"
        report.RecordSelectionFormula = "{TBL_DEVMASTER.PONO}=" & Request.QueryString("val").ToString
        Page.Title = "PODevice Reports"
        Exit Select
End Select
CRptViewer.ReportSource = report
Updated 29-Jul-13 3:04am
Maciej Los 29-Jul-13 10:07am    
I would suggest you to re-think design...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900