I am using the HTTP Refer logic for redirecting my last (summary) page to the respective pages and then again back to summary page ,( after the user has made any changes).Now the problem I have with this logic is everytime the localhost no: changes ( when i run the project in my machine) I have change the no: in the code of al lthe 7 pages, (below is the code for more understanding) , Is there any way where I can have this done globally rather than hardcoding it everytime. Any help is appreciated.
str = HttpContext.Current.Request.ServerVariables("HTTP_REFERER")
Session("str") = str
If str1 = "http://localhost:1654/Project1/Summarypage.aspx" Then
Response.Redirect("Summarypage.aspx")
Else
Response.Redirect("Homepage.aspx")
End if