Quantcast
Channel: SharePoint Legacy Versions - Using SharePoint Designer, InfoPath and Other Customizations Forum
Viewing all articles
Browse latest Browse all 2319

Changing SQLDataSource Selectcommand with a codeblock?

$
0
0

Is something like possible with on SharePoint 2007 page?

I need to pass current user (in domain\user format) to a SQL Select.

<script runat="server"> 
protected override void OnLoad(EventArgs e) 


{ 
SqlDataSource2.SelectCommand = "SELECT * FROM [APT_Files_Detailed] ORDER BY [CreDate] ASC ";

}    
</script>



============================
Thank You
cyberpine.com



Viewing all articles
Browse latest Browse all 2319

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>