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

execute the sql datasource based ona parameter value?

2 Answers 108 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
akpaga akpaga
Top achievements
Rank 1
akpaga akpaga asked on 18 Jun 2012, 10:19 PM
I want the sql query in the sqldatasource of my report to be executed in two different ways

if (parameter =1)
{

}

else
{

}

How can i do this programmatically....ThankYou in advance

2 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Jun 2012, 09:09 AM
Hi,

Check the following help article that elaborates on your inquiry: Using Parameters with the SqlDataSource component.

Kind regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
akpaga akpaga
Top achievements
Rank 1
answered on 19 Jun 2012, 02:03 PM
Thank you Steve.
Tags
General Discussions
Asked by
akpaga akpaga
Top achievements
Rank 1
Answers by
Steve
Telerik team
akpaga akpaga
Top achievements
Rank 1
Share this question
or