See more: C# ASP ASP.NET Javascript i anm getting error in this code .. When answering a question please: Read the question carefully. Why can't it find the root directory when technically it should? All other pages (anything in the root level, or only 1 folder in) would give that “object expected” error. have a peek here