Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6977
  • Last Modified:

Using Request.ServerVariables (SERVER_NAME) in asp.net

I have one login page that server two asp.net app on two different web servers.

I need to use the approach of checking which box the user is trying to get to using
         Request.ServerVariables (SERVER_NAME)

then redirect to the appropriate path ie

        response.redirect("~/owners/store.aspx")

or else

         response.redirect("~/default.aspx")
   
0
mugsey
Asked:
mugsey
1 Solution
 
wolfman007Commented:
You can access the Server variables

http://www.dotnetjunkies.ddj.com/Tutorial/B3CCB57F-0BBD-4D68-96B0-480B2F1DFC28.dcik

http://www.west-wind.com/weblog/posts/269.aspx
Request.ServerVariables["SERVER_NAME"]
 
Or
 
HttpContext.Current.Request.ServerVariables["SERVER_NAME"]

Open in new window

0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now