farid Posted June 1, 2003 Posted June 1, 2003 How can I get user id when he submit a from ?? Can any one tell me how ????????????? Quote
Madz Posted June 1, 2003 Posted June 1, 2003 You just need to add this line of code on the submit button click event or some other event txtX.Text = Request.Browser.UserHostAddress Quote The one and only Dr. Madz eee-m@il
farid Posted June 1, 2003 Author Posted June 1, 2003 I need to use a hidden from field, can I use this code ?????? Quote
bungpeng Posted June 2, 2003 Posted June 2, 2003 What is your user id? Windows login user id? or your application user id? Quote
Madz Posted June 2, 2003 Posted June 2, 2003 private void cmdCheckIP_Click(object sender, System.EventArgs e) { Response.Write(Request.UserHostAddress); } This is a simple code , Remember one thing Request.UserHostAddress will return the IP address of the Client. Quote The one and only Dr. Madz eee-m@il
Madz Posted June 2, 2003 Posted June 2, 2003 You can also get other information from Request Object such as User Host Name , Browser, Operating System. etc. Just check properties of Request Object. Quote The one and only Dr. Madz eee-m@il
bungpeng Posted June 2, 2003 Posted June 2, 2003 I not sure whether this still support or not, it run in ASP Request.ServerVariables("REMOTE_ADDR") Quote
Madz Posted June 3, 2003 Posted June 3, 2003 Asp.NET supports the backward compatibility with ASP Quote The one and only Dr. Madz eee-m@il
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.