shahab Posted February 27, 2004 Posted February 27, 2004 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.;) Quote
Administrators PlausiblyDamp Posted February 27, 2004 Administrators Posted February 27, 2004 try Response.Write("http://" & Request.ServerVariables["SERVER_NAME"] & Request.ServerVariables["URL"] & "?" & Request.ServerVariables["QUERY_STRING"]); Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.