J
John
Hi
I am trying to pass the asp.net membership username to the sqldatasource of
a gridview as below;
<asp:SqlDataSource ID="EventsSqlDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:MyConnStr %>" SelectCommand="SELECT
* FROM [MyTable] WHERE [Username] =
'<%Me.User.Identity.Name%>'"></asp:SqlDataSource>
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:SqlDataSource ID="EventsSqlDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:MyConnStr %>" SelectCommand="SELECT
* FROM [MyTable] WHERE [Username] =
'<%Me.User.Identity.Name%>'"></asp:SqlDataSource>
It is not working. How can I do it correctly?
Thanks
Regards