please find and try to help me about this problem> at this file ( Global.asax ) and you can check my website: http://www.almusairiey.com

Compiler Error Message: BC30205: End of statement expected.

Source Error:

Line 16:
Line 17: Function GetParentDir() As String
Line 18: Dim PD String = Server.MapPath("db\")
Line 19: PD = System.IO.Directory.GetParent(PD).ToString & "db\"
Line 20: Return PD

That \ is the .Net escape character.
Say you wanted to split a string on the double quote you would write it as
split("\"") otherwise the second quote gets detected as the end of the string.

Which means you need to have ("db\") to stop the \ being the escape character and be read as the character you actually want.

You could write it this way, I'm pretty sure...


And that, of course, is exactly what I meant. "db\" <- TWO back slashes!!

You can use @"db\". The @ tells the compiler not to treat the \ as an escape character.
From MSDN:
because the backslash () is an escape character, literal backslashes in a string must be escaped or the entire string must be @-quoted.