Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Images not showing and urls incorrectly formatted

Status
Not open for further replies.

Hfnet

IS-IT--Management
Dec 31, 2003
369
0
0
GB
I am developing an asp .net4 website for a university. My test server is 2008R2 running .net 4 and IIS 7.5. On this server the site works fine.

On the Uni server it is not. The server is the same spec (2008 R2, .net 4 and IIS 7.5)

I have set up application pools identically and everything looks identical. However, on the first page the image is just a red cross. The properties of the image show incorrectly. On my test server it shows as " but on the Uni server it shows as "
In addition, instead of redirecting to page2.aspx, it will attempt to go to default.aspx/page2.aspx so ends back up at the default page.

Anyone have any ideas? Happy to provide info as needed.
 
Oh, just had a thought, I should mention that I am using the AjaxControlToolkit.
 
Actually I think I may have the answer; I had the images as html <img> and I have changed to <asp:Image ID="Image2" runat="server" ImageUrl="~/images/logo.jpg" />

In addition I changed the response.redirect to "~/page2.aspx" instead of "./page2.aspx"

So far all seems good.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top