user name in database!
-
Hi, I'm wondering how to do this, I'm working on the on a datagrid and I'm using windows authentication. I managed to get username on to a login form, but I want it to be stored into the database.The code of web config looks like: authentication mode="Windows" identity impersonate="true" And the Login page looks like on(Page_load): Response.Write(Page.User.Identity.Name); Thanks.
-
Hi, I'm wondering how to do this, I'm working on the on a datagrid and I'm using windows authentication. I managed to get username on to a login form, but I want it to be stored into the database.The code of web config looks like: authentication mode="Windows" identity impersonate="true" And the Login page looks like on(Page_load): Response.Write(Page.User.Identity.Name); Thanks.
What exactly is ur problem?? If u want to get the windows login name then use: HttpContext.Current.User.Identity.Name or else tell us what is the exact problem. All the Best...
-
What exactly is ur problem?? If u want to get the windows login name then use: HttpContext.Current.User.Identity.Name or else tell us what is the exact problem. All the Best...
-
Thanks, I want is when any one uses the website the Windows Login name should appear in a particular datagrid column automatically. Thanks.
Your problem is solved or not????
-
Your problem is solved or not????
Not yet solved. When I try using: HttpContext.Current.User.Identity.Name; I get error: Only assignment, call, increment, decrement, and new object expressions can be used as a statement. Thanks
-
Your problem is solved or not????