Groups | Blog | Home
all groups > sql server reporting services > september 2004 >

sql server reporting services : Passing parameters thru URL to ASP.NET


JiaN
9/16/2004 11:33:04 PM
How do i pass parameters from reporting services to ASP.NET thru URL? and how
do i retrieve the parameters values from the URL using ASP.NET?

And also vice versa. that means how do i pass parameters from ASP.NET to
reporting services and how do i retrieve the parameters values using
reporting services.

JiaN
9/17/2004 12:37:02 AM
ok.. so the example u given me is for passing parameters from asp.net to
reporting services? and how do i display the parameters value that is been
passed in the URL to display in my report textbox?

for the other way on passing parameters from report services to asp.net.. is
because i got a page(done in RS) where user can click on the column call
"Suggestion ID" and they will be transfer to a aspx page where i need the
suggestion ID to query the database tables to get extra information to
display in that aspx page and they are able to evaluate the suggestions from
that aspx page by clicking on the Accept, Reject button available on the
page. I done this in aspx page because my supervisor wants a real button
instead of those "textbox" like button in reporting services.

thanks for your help!
[quoted text, click to view]
JiaN
9/17/2004 3:03:08 AM
1. ya ok, i had follow ur instructions and is now able to display the
parameters values in my report.. Thanks alot!

2. Now for the second point. I will tell you what i wan to accomplish in
this part.
Ok, so for example now i am viewing a page(done in reporting services) that
got all the suggestions submitted. And in order to view the full information
of the suggestions, i had to click on the Suggestion ID column and it will
invoke into an aspx page where the full information can be displayed. So for
now, i does not know how to display the full information for the aspx page
base on the respective Suggestion ID that had been clicked when at the
reporting services page.

(Reporting Services Page)
---------------------------------------------------------
Suggestions ID Suggestion Title
1 Carpark
2 Toilet
... ...
... ...
---------------------------------------------------------
So i am now viewing the page done in reporting services, and in order to
view the full information of the suggestions, i had to click on the
Suggestions ID. For example, i click on Suggestion ID "1", user will be
transfer to a aspx page where they can view the complete information of
Suggestion ID "1".
And so what should i do in order to display the correct information for
Suggestion ID "1" in the aspx page when user clicks on the Suggestion ID "1"
from the reporting services page.

hope you understand my problem so far.. sorry for the trouble and time
spent. thanks

[quoted text, click to view]
avnrao
9/17/2004 12:33:48 PM
Generally parameters are flown from ASP.Net to reports.

If you are getting parameter values to ASP.Net app in query string use this
:
myParamValue = Request.QueryString["paramName"];
// append it to report URL
http://serv/reportserver?/path&myParam=myParamValue

If you are getting parameter values to ASP.Net in form submit, use this :
myParamValue = Request.Form["paramName"];
// append it to report URL
http://serv/reportserver?/path&myParam=myParamValue

and about the Other way, passing parameters from reporting services to
ASP.Net?? I dont think why we need to do this? do you have any specific
requirement?

[quoted text, click to view]

Jonas Montonen
9/17/2004 2:02:49 PM
[quoted text, click to view]

I guess you could use the "Navigation" properties in the advanced option
tab. Use the "Jump To Url" set value like below:
="http://www.anyurl.com/page.aspx?p=" & Parameters!paramXYZ.Value

Jonas Montonen
9/17/2004 2:19:44 PM
[quoted text, click to view]


Oops, I read your message again.
I guess what you want is:
="http://www.anyurl.com/page.aspx?suggId=" & =Fields!SuggestionId.Value

avnrao
9/17/2004 2:48:20 PM
1. you can make the parameters appear in Report textbox by placing
Parameters!ParameterName.Value in the report text. does this serve your
purpose?

2. You are trying to invoke an aspx page from a report. so have a link in
Report which points to your aspx page
(http://server/aspxapp/my.aspx?parameters) and you have to pass parameters
in query string only. (tell me if you can use a form to submit..i dont know
that).

hth

[quoted text, click to view]

JiaN
9/19/2004 8:03:01 PM
Thanks Jonas, i can now pass my parameters from RS to aspx. But i not sure
how do i retrieve my SuggestionID value from the URL. i need this value for a
select statement.

"SELECT Title from Suggestions WHERE SuggestionID=????"

- What should i fill in for the ???? part?

Thanks alot for your help.

[quoted text, click to view]
AddThis Social Bookmark Button