Achiving URL in AddressBar

shahab

Junior Contributor
Joined
Aug 14, 2003
Messages
206
Location
Iran(Middle East)
Dear friends,
I need the url in many cases.
I know that in old asp we used this Method:
Response.Write("http://" & Request.ServerVariables("SERVER_NAME") & Request.ServerVariables("URL") & "?" & Request.ServerVariables("QUERY_STRING"));
----------------------------------------------------------------------
But in ASP.NET this error has been reported:
'System.Web.HttpRequest.ServerVariables' denotes a 'property' where a 'method' was expected'
----------------------------------------------------------------------
What should I wite?
Thanks to your help.;)
 
Back
Top