views:

87

answers:

1

I have an aspx that returns XML data using the query string parameter UserId. This UserId should be the SharePoint current User.

I create the datasource and dragged to the page, but i don't know how to add the parameter to the datasource, so that it sends the current User Id. I tried to add the parameter in the datasource parameters grid but when the aspx gets called it always uses the default value and not the current user id

+1  A: 

You should be able to do this by adding a parameter through the context menu of the control (i.e. the DataFormWebPart) in design menu.

Here's a step by step tutorial how to do this:

tutorial

This tutorial uses the DataFormWebPart, but the part about parameters is valid for any datasource + control in SPDesigner.

Colin