Hi
I am trying to pass the asp.net membership username to the sqldatasource of
a gridview as below;
<asp:SqlDataSou rce ID="EventsSqlDa taSource" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:MyConnStr %>" SelectCommand=" SELECT
* FROM [MyTable] WHERE [Username] =
'<%Me.User.Iden tity.Name%>'"></asp:SqlDataSour ce>
It is not working. How can I do it correctly?
Thanks
Regards
I am trying to pass the asp.net membership username to the sqldatasource of
a gridview as below;
<asp:SqlDataSou rce ID="EventsSqlDa taSource" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:MyConnStr %>" SelectCommand=" SELECT
* FROM [MyTable] WHERE [Username] =
'<%Me.User.Iden tity.Name%>'"></asp:SqlDataSour ce>
It is not working. How can I do it correctly?
Thanks
Regards
Comment