Solved

Report from QueryString

Posted on 2014-10-24
2
114 Views
Last Modified: 2014-10-24
I'm fairly new to asp.net developing and probably trying to do something simple. I am using a Devexpress report and I want to use the querystring in the url to retrieve my report from the hyperlink in my default page. ~\Invoices\Print.aspx?OrderID=1234

When I run the report in the development side it runs fine through the parameter's scheme but I'm just having trouble grabbing the OrderID and implementing it in the report.

Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
        ReportViewer1.Report = CreateReport()
    End Sub

    Private Function CreateReport() As XtraReport
        Dim report As New PrintInvoices()
        report.orderID.Value = GetSelectedValue(1)
        report.CreateDocument()
        Return report
    End Function

Open in new window


So i'm trying to get the value for the GetSelectedValue() function. Not sure if i'm going about this the right way.
0
Comment
Question by:Southern_Gentleman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
LordWabbit earned 500 total points
ID: 40402264
I'm assuming GetSelectedValue looks something like this

    Public Function GetSelectedValue() As Integer
        Return Convert.ToInt32(Request.QueryString("OrderID"))
    End Function

Open in new window

0
 

Author Closing Comment

by:Southern_Gentleman
ID: 40402447
Easy enough. Thank you
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question