I am currently having trouble trying to get a select command with a session variable in my asp gridview. I have been looking on here and other sites and have not really came across much. It's got to be a simple fix that i just have not came across yet. Here is my code
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ConnectionStrings:mySql_Connection %>"
SelectCommand = "Select [Username], [Name] FROM UserPassword WHERE CustID = '" & session("CustID") & "'>
</asp:SqlDataSource>
I'm not even sure if that is close to correct or not. I get the server tag is not well formed. Or invalid syntax. Can someone show how to do this. I've been stuck on this and its really bugging me.