I changed the virtualpath setting on the website properties from '/sitename' to '/'. Index.aspx page on the root folder correctly points to http://localhost:4144/sitename/Index.aspx. But, hyperlink for the image button on every page in the subfolder points to http://localhost:4144/Subfolder/Page1.aspx instead of http://localhost:4144/sitename/Subfolder/Page1.aspx I am using ../Subfolder/Page1.aspx on each image button as the href attribute.
What am I doing wrong here?