asp.net - If x and y then construction -


in web app written in vb.net .net 4.0, using vs 2012, there line:

    serverport = cint(httpcontext.current.request.servervariables("server_port"))     servername = httpcontext.current.request.servervariables("server_name")      if serverport = nonsecureport , servername.contains("mywebsite.com")       more code if both clauses true      end if 

as turns out, nonsecureport = 8089 , in case serverport 80 think should means the app not execute code in if clause, serverport not equal nonsecureport.

but in fact, watch code go right code , not understand why. asp.net app. published dev web server , debugging remotely.

why happen?


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -