Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

How to get current logged on user id?

$
0
0

I am using the built in membership tools.. the userID is stored in a database table called aspnet_Users..

so what goes in here?

protected void button1(object sender, EventArgs e)
    {
        string comment;
        int rating;
        string gameTitle;
        string userb;

        comment = commentBox.Text;
        rating = ratingList.SelectedIndex;
        gameTitle = Request.QueryString["filename"];
        userb = ????

Where I have userb should be to retrieve the current user,

thanks


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>