Login name!
-
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
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
-
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
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.