im getting error: Expected End of Statement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • madhu8065
    New Member
    • Nov 2009
    • 1

    im getting error: Expected End of Statement

    Code:
    Dim ipadd 'As String;
    ipadd =HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
    if (string.IsNullOrEmpty(ipadd) || ipadd.Equals("unknown", StringComparison.OrdinalIgnoreCase))
    {
    ipadd = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
    }
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    The problem is you are writing in a couple different languages that use different syntax. So first of all, what language are you intending to write? And are you trying to use ASP classic or ASP.NET?

    Jared

    Comment

    Working...