locked
wss3.0 RRS feed

  • Question

  • how to get userid from wss3.0
    • Moved by Wayne Fan Wednesday, December 15, 2010 10:03 AM It is SharePoitn 2007 issue, thanks. (From:SharePoint 2010 - Using Visual Studio with SharePoint and other programming)
    Tuesday, December 14, 2010 8:30 AM

Answers

  • Hi

    Please try this code

    SPWeb oWeb = SPContext.Current.Web;
    protected void Page_Load(object sender, EventArgs e)
    {   
        Label1.Text = oWeb.CurrentUser.ID.ToString();
    }



    • Proposed as answer by Naveed Mohammad Tuesday, December 14, 2010 8:49 AM
    • Marked as answer by Wayne Fan Wednesday, December 15, 2010 10:04 AM
    Tuesday, December 14, 2010 8:48 AM