Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I frequent other newsgroups, too, and am MOST IMPRESSED with the lack of smart a-- and presence of genuine desire to help anyone of any skill level..."

Geography

Where in the world do Tek-Tips members come from?

Images not showing and urls incorrectly formatted

Hfnet (IS/IT--Management)
1 Aug 12 10:24
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 "http://localhost/test/images/logo.jpg" but on the Uni server it shows as "http://localhost/test/default.aspx/images/logo.jpg"

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.
Hfnet (IS/IT--Management)
1 Aug 12 10:32
Oh, just had a thought, I should mention that I am using the AjaxControlToolkit.
Hfnet (IS/IT--Management)
1 Aug 12 10:56
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.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close