This is a migrated thread and some comments may be shown as answers.

Retriving Parameter Value

1 Answer 103 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Suriya
Top achievements
Rank 1
Suriya asked on 16 Feb 2009, 06:13 AM
Hi..

   This is Suriya Again..
I am trying to print the parameter value( which was given from the web form ) in the report.
Public String parameter1
{
get
    {
         return (string) sqldataadapter1.selectcommand.parameter[0].value;
     }
set
    {
         sqldataadapter1.selectcommand.parameter[0].value=value;
     }
}

Using this above method i have retrive the parameter from web form..

then i have create a report parameter named as para1....

my doubt is how can i assign the parameter1 value (i.e., from web form) to para1(report)?

please clarify my doubt as soon as possible...

           By

S.Suriya Narayanan

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 16 Feb 2009, 01:22 PM
Hi Suriya,

Generally there are two ways of getting the parameters values:
  • Through your own user interface or any other means (e.g. query string).
  • Through the report parameters defined in the ReportParameters collection of the report.
You are already using the first approach as per the following video: Design Time Support for Parameterized Queries, so there is no need to involve report parameters.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Suriya
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or