Stump the Panel » End Users and Information Workers

Use part of LoginName as a Data Form Parameter

(1 post)
  • Started 3 days ago by nathan
  1. nathan
    Member

    Hi,
    I'm using
    <WebPartPages:DataFormParameter Name="staffname" ParameterKey="staffname" PropertyName="ParameterValues" DefaultValue="nlb"/>
    to pass a Parameter to a SQL connection.
    I need to replace the DefaultValue (nlb) with the LoginName of the sharepoint user.
    Firstly, how can I do that?
    Secondly, the Loginname returns domain\user = I need to remove the "domain\" before it is passed...

    Any help would be appreciated...

    Nathan

    Posted 3 days ago #

RSS feed for this topic

Reply

You must log in to post.