Hi Munna
Thanks. I am trying to do it in the SqlDataSource in a gridview. Not sure
how to do it in this context.
<asp:SqlDataSource ID="EventsSqlDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:Events %>"
SelectCommand="SELECT * FROM [MyTable] WHERE [Username]
= Me.User.Identity.Name"></asp:SqlDataSource>
Thanks again.
Regards
"Munna" <mu******@gmail.comwrote in message
news:3f**********************************@u36g2000 prf.googlegroups.com...
On May 31, 10:54 am, "John" <i...@nospam.infovis.co.ukwrote:
>Hi
I have implemented asp.net membership in my app. How can I get the name
of
the currently logged user?
Thanks
Regards
Hi
try
this.User.Identity.Name;
Best of luck
Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com