IP in Text Box
-
Hi, I am trying to set up a text box, which as soon as the page loads, the IP of the visitor is shown in a Text Box. The Text Box must also be locked, so that the user can see the IP, but not edited. I am using the following code:
">;
But it is not getting the IP address, instead it is just displaying: <; Any help about how I should tackle this problem? :) (Btw, I'm using C# in Visual Studio)
-
Hi, I am trying to set up a text box, which as soon as the page loads, the IP of the visitor is shown in a Text Box. The Text Box must also be locked, so that the user can see the IP, but not edited. I am using the following code:
">;
But it is not getting the IP address, instead it is just displaying: <; Any help about how I should tackle this problem? :) (Btw, I'm using C# in Visual Studio)
use proper bindig with text. u missing the method which bind the data with Text Property. make changes as follows. Text='<%#Eval(Request.ServerVariables("remote_addr"))%>' Regards Keyur, "Always Be Happy, Live Life Long"
-
use proper bindig with text. u missing the method which bind the data with Text Property. make changes as follows. Text='<%#Eval(Request.ServerVariables("remote_addr"))%>' Regards Keyur, "Always Be Happy, Live Life Long"
-
When I did that, it gave me the following error: 'System.Web.HttpRequest.ServerVariables' is a 'property' but is used like a 'method' H:\VisualProgramming\2\guestbook.aspx 41 :sigh:
check it for syntax and make proper concatenation of string. Regards Keyur
-
Hi, I am trying to set up a text box, which as soon as the page loads, the IP of the visitor is shown in a Text Box. The Text Box must also be locked, so that the user can see the IP, but not edited. I am using the following code:
">;
But it is not getting the IP address, instead it is just displaying: <; Any help about how I should tackle this problem? :) (Btw, I'm using C# in Visual Studio)
http://manasbhardwaj.net/Article/get-the-visitor-ip-address.aspx[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.