SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question was on StackOverflow, but I thought this would be a better place for it.

I am using asp:SqlDataSource to pull data and display this in a repeater control.

What I would like to do is use the Sharepoint LoginName as a parameter to add into my query but have been going round in circles trying to find out how to do this.

This control:

<asp:LoginName runat="server" id="LoginName1"></asp:LoginName>

Pulls the value that i need to use but I cannot seem to get this into the <SelectParameters> of my datasource.

I have also tried the <asp:profileparameter> but I am either not using it correctly or I need some extra config.

share|improve this question
please delete the question on Stack Overflow, then. Don't post the same question on multiple sites. – teylyn Jul 3 '13 at 3:47
StackOverflow question has been deleted. – Rick Jul 3 '13 at 4:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.