Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Report from QueryString

Posted on 2014-10-24
2
Medium Priority
?
115 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 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

730 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