E
Edward
I've just taken over maintaining a system from a colleague who has
left. I find the following line in her code:
Dim params(2) As SqlClient.SqlParameter
params(0) = New SqlClient.SqlParameter("@UserName", pvstrUsername)
params(1) = New SqlClient.SqlParameter("@Password", pvstrPassword)
params(2) = New SqlClient.SqlParameter("@MachineName",
Environment.MachineName())
When I run the code in the debugger, I find that the value of
Environment.MachineName is the same as the name of my PC. But I'm
running this on my localhost IIS.
So, my question is: if I run this in my browser but with the
application on a different web server, what will the value of
Environment.MachineName?
Do I make myself clear? Am I as dumb as a bag of spanners?
Edward
left. I find the following line in her code:
Dim params(2) As SqlClient.SqlParameter
params(0) = New SqlClient.SqlParameter("@UserName", pvstrUsername)
params(1) = New SqlClient.SqlParameter("@Password", pvstrPassword)
params(2) = New SqlClient.SqlParameter("@MachineName",
Environment.MachineName())
When I run the code in the debugger, I find that the value of
Environment.MachineName is the same as the name of my PC. But I'm
running this on my localhost IIS.
So, my question is: if I run this in my browser but with the
application on a different web server, what will the value of
Environment.MachineName?
Do I make myself clear? Am I as dumb as a bag of spanners?
Edward