How can a virtual directory path be case sensitive?

Hope I can fully explain the real information.

For starters, we have LinkButton, whose text is actually an image tag.

The image to which it refers is Png and is located in a folder in the web directory. This is IIS V6 and win Server 2003.

Path http: //webaddress/Admin/Images/image.png

Admin is a virtual directory configured in IIS.

The above URL does not work, but if you change it to http: //webaddress/Admin/Images/image.png (reduces case "a"), then the image will be filed, change it to "A" and it will pick you up to log in, you log in, and he goes back to log in. change to "a" and "voila" the image will be filed. It is strange that this problem does not always arise, and I hunted for a solution for several days to no avail. Any ideas?

thank

As requested, this is a full link button

<asp:LinkButton ID="lnkCommitAll" runat="server" CausesValidation="false"><asp:Image ID="imgCommitAll" runat="server" ImageUrl="~/Images/Grid/confirm_16.png" AlternateText="Commit All Changes" />&nbsp;Commit All</asp:LinkButton>
+3
source share
1 answer

Could you post the entire LinkButton tag?

If the administrator is a virtual directory, then your URL should look like ~ / Images / image.png

, , , admin? "Admin", IIS .

.

, ,

0

Source: https://habr.com/ru/post/1775605/


All Articles