Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Passing Parameters To RDL Report from aspx page

Passing Parameters To RDL Report from aspx page

Scheduled Pinned Locked Moved ASP.NET
sysadmin
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tejesh123
    wrote on last edited by
    #1

    I want to pass parameters from aspx page to RDL server report. Using Cross posting i am able to access the parameters from the previous page and also the know which is the previous page. Thus dynamically bind the report and pass the parameters . But my requirement is i want to open the report page on new window. Also know the previuos page(parameter page.) I want to know whether querystring or session will work best for me. if there are any other solution let me know. thanks in advance Tejesh

    A 1 Reply Last reply
    0
    • T tejesh123

      I want to pass parameters from aspx page to RDL server report. Using Cross posting i am able to access the parameters from the previous page and also the know which is the previous page. Thus dynamically bind the report and pass the parameters . But my requirement is i want to open the report page on new window. Also know the previuos page(parameter page.) I want to know whether querystring or session will work best for me. if there are any other solution let me know. thanks in advance Tejesh

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      use

      ReportParameter param1 = new ReportParameter(paramName, paramValue);
      ReportViewer.ServerReport.SetParameters(param1);

      :rose::rose:

      Abhishek Sur My Latest Articles Working with Excel using MDAC
      Basics on LINQ and Lambda Expressions
      Create .NET Templates

      T 1 Reply Last reply
      0
      • A Abhishek Sur

        use

        ReportParameter param1 = new ReportParameter(paramName, paramValue);
        ReportViewer.ServerReport.SetParameters(param1);

        :rose::rose:

        Abhishek Sur My Latest Articles Working with Excel using MDAC
        Basics on LINQ and Lambda Expressions
        Create .NET Templates

        T Offline
        T Offline
        tejesh123
        wrote on last edited by
        #3

        hi Abhishek thx for replying i want to know how do i access the parameters from the previuos page, when i opened the report page in new window. Which will be the optimum solution(querystring,session or something else)

        A 1 Reply Last reply
        0
        • T tejesh123

          hi Abhishek thx for replying i want to know how do i access the parameters from the previuos page, when i opened the report page in new window. Which will be the optimum solution(querystring,session or something else)

          A Offline
          A Offline
          Abhishek Sur
          wrote on last edited by
          #4

          Optimum solution is the context transfer. If you are using window.open.. the best way is doing through querystring. :thumbsup:

          Abhishek Sur


          My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

          **Don't forget to click "Good Answer" if you like to.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups