Author: westdh | Posted on: 7/8/2009 12:29:29 PM | Views : 290

I have this value placed on my page. <%=Page.User.Identity.Name %> and it prints out my logged in User Name. I would like to get it into ny sql statement.
My code in code behind is:
protected void SqlDataSource1_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
   {
           e.Command.Parameters["@User"].Value = Page.User.Identity.Name.ToString();
   }
<asp:SqlDataSource ID Go to the complete details ...