Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Login name!

Login name!

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasehelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nclauder
    wrote on last edited by
    #1

    Hi everyone, Can someone help me? is there a way The windows login can be saved automatically into database whenever a user uses my website? I'm working with datagrid and c# in ASP.Net. Thanks

    S 1 Reply Last reply
    0
    • N nclauder

      Hi everyone, Can someone help me? is there a way The windows login can be saved automatically into database whenever a user uses my website? I'm working with datagrid and c# in ASP.Net. Thanks

      S Offline
      S Offline
      StianSandberg
      wrote on last edited by
      #2

      Take a look at this forum thread at thescripts.com: Any way to determine, via code, the user's Windows Login Name and domain? [^]

      --------------- serverside.no

      N 1 Reply Last reply
      0
      • S StianSandberg

        Take a look at this forum thread at thescripts.com: Any way to determine, via code, the user's Windows Login Name and domain? [^]

        --------------- serverside.no

        N Offline
        N Offline
        nclauder
        wrote on last edited by
        #3

        Thanks, But when I try the example on a new webform I get domain/username. But it's not inserted into the database my problem is getting it into the database I have a row where I want it to be saved so that every one can read who wrote a particular message. How should I do it. I have this code writen for the column: System.Web.UI.WebControls.TextBox st6=new System.Web.UI.WebControls.TextBox(); st6=(System.Web.UI.WebControls.TextBox)e.Item.Cells[0].FindControl("txtname"); myCommand.Parameters.Add(new SqlParameter("@Name",SqlDbType.Text)); myCommand.Parameters["@Name"].Value=st6.Text; Thanks.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups