Ask a Question related to ASP, Design and Development.
-
Kevin Vogler #1
Server.Transfer and image path
I have a subdirectory with it's own images folder. All the image paths in
the pages in the sub directory are "image/image.jpg" When I
Response.Redirect to a page in the subdirectory the images are fine but when
I use Server.Transfer all the links are broken. I'd prefer to use the
relative paths. Is there a way around this in the Server.Transfer?
Many thanks
Kevin Vogler
Kevin Vogler Guest
-
Error Server.Transfer / Server.Execute ()
Hi! Any one has Idea, How to use Server.Transfer and Server.Execute, When I tried to use these methods I got an eror: Server object error 'ASP... -
Transfer image to flash from director?
Does anyone has any idea about transfer a image of a member or sprite to flash which is embeded in director? I've tried a way: save the image to... -
Transfer image from director to flash?
Does anyone has any idea about transfer a image of a member or sprite to flash which is embeded in director? I've tried a way: save the image to... -
Server.Execute and Server.Transfer not detecting session state
I am setting a session variable, then doing a server.transfer in global.aspx and the page I am going to is saying that session state is not enable... -
Path problems on PC to mac transfer
I've created a crossplatform project. I am using a MAC with Toast to burn my CDs. At this point in time I'm only interested in burning the PC side... -
Ray at #2
Re: Server.Transfer and image path
Not sure why that would be happening if the page you're transferring to has
correct image paths, but the one thing I could suggest is using
/dir/images/file.gif for your paths, like use a path that is absolute from
the root of your site in all your pages.
Ray at home
--
Will trade ASP help for SQL Server help
"Kevin Vogler" <kvogler@voglerandassociates.com> wrote in message
news:uaPveIeWDHA.2476@tk2msftngp13.phx.gbl...when> I have a subdirectory with it's own images folder. All the image paths in
> the pages in the sub directory are "image/image.jpg" When I
> Response.Redirect to a page in the subdirectory the images are fine but> I use Server.Transfer all the links are broken. I'd prefer to use the
> relative paths. Is there a way around this in the Server.Transfer?
>
> Many thanks
> Kevin Vogler
>
>
Ray at Guest
-
Kevin Vogler #3
Re: Server.Transfer and image path
Thanks for the reply. The image path is valid from where the page is but
not from where the Server.Transfer is initiated. I'm redirecting based on
the URL.
thanks
Kevin Vogler
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%23%23vwIcfWDHA.2100@TK2MSFTNGP11.phx.gbl...has> Not sure why that would be happening if the page you're transferring toin> correct image paths, but the one thing I could suggest is using
> /dir/images/file.gif for your paths, like use a path that is absolute from
> the root of your site in all your pages.
>
> Ray at home
>
> --
> Will trade ASP help for SQL Server help
>
>
> "Kevin Vogler" <kvogler@voglerandassociates.com> wrote in message
> news:uaPveIeWDHA.2476@tk2msftngp13.phx.gbl...> > I have a subdirectory with it's own images folder. All the image paths> when> > the pages in the sub directory are "image/image.jpg" When I
> > Response.Redirect to a page in the subdirectory the images are fine but>> > I use Server.Transfer all the links are broken. I'd prefer to use the
> > relative paths. Is there a way around this in the Server.Transfer?
> >
> > Many thanks
> > Kevin Vogler
> >
> >
>
Kevin Vogler Guest
-
grw #4
Re: Server.Transfer and image path
Right click on the image to get its path properties.
Compare this with an image that shows vs an image that doesnt.
What is the .transfer code used?
"Kevin Vogler" <kvogler@voglerandassociates.com> wrote in message
news:#v83qrfWDHA.1896@TK2MSFTNGP12.phx.gbl...from> Thanks for the reply. The image path is valid from where the page is but
> not from where the Server.Transfer is initiated. I'm redirecting based on
> the URL.
>
> thanks
> Kevin Vogler
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:%23%23vwIcfWDHA.2100@TK2MSFTNGP11.phx.gbl...> has> > Not sure why that would be happening if the page you're transferring to> > correct image paths, but the one thing I could suggest is using
> > /dir/images/file.gif for your paths, like use a path that is absolutepaths> > the root of your site in all your pages.
> >
> > Ray at home
> >
> > --
> > Will trade ASP help for SQL Server help
> >
> >
> > "Kevin Vogler" <kvogler@voglerandassociates.com> wrote in message
> > news:uaPveIeWDHA.2476@tk2msftngp13.phx.gbl...> > > I have a subdirectory with it's own images folder. All the imagebut> in> > > the pages in the sub directory are "image/image.jpg" When I
> > > Response.Redirect to a page in the subdirectory the images are fine>> > when> >> > > I use Server.Transfer all the links are broken. I'd prefer to use the
> > > relative paths. Is there a way around this in the Server.Transfer?
> > >
> > > Many thanks
> > > Kevin Vogler
> > >
> > >
> >
>
grw Guest
-
Kevin Vogler #5
Re: Server.Transfer and image path
When I do a show source it's identical whether it's code ex A or B. The
structure is at the root I have default.asp which has the code below. The
only way I can get it to work is if I put the images folder at the root.
Apparently, using Server.Transfer just loads the new page in the old page so
the references are all relative to the page with the transfer code. I'm
just looking if there's a way I can change the Server.Transfer so it will
deal with this.
sub directory domain1 has a images directory and a default.asp. The image
code in each default is:
<img src="images/Logo.jpg" width="178" height="60">
Code Ex A
Dim strServerName
strServerName = Request.ServerVariables("SERVER_NAME")
Select Case strServerName
Case "www.domain1.com"
Response.redirect("domain1/default.asp")
Case "www.domain2.org"
Response.redirect("domain2/default.asp")
Case Else
Response.Redirect("bad.asp")
End Select
Code Ex B
Dim strServerName
strServerName = Request.ServerVariables("SERVER_NAME")
Select Case strServerName
Case "www.domain1.com"
Server.Transfer("domain1/default.asp")
Case "www.domain2.org"
Server.Transfer("domain2/default.asp")
Case Else
Response.Redirect("bad.asp")
End Select
Thanks
Kevin Vogler
Kevin Vogler Guest
-
grw #6
Re: Server.Transfer and image path
Use <img src="/images/Logo.jpg" width="178" height="60">
"Kevin Vogler" <kvogler@voglerandassociates.com> wrote in message
news:ODNv10gWDHA.384@TK2MSFTNGP12.phx.gbl...so> When I do a show source it's identical whether it's code ex A or B. The
> structure is at the root I have default.asp which has the code below. The
> only way I can get it to work is if I put the images folder at the root.
> Apparently, using Server.Transfer just loads the new page in the old page> the references are all relative to the page with the transfer code. I'm
> just looking if there's a way I can change the Server.Transfer so it will
> deal with this.
>
> sub directory domain1 has a images directory and a default.asp. The image
> code in each default is:
> <img src="images/Logo.jpg" width="178" height="60">
>
> Code Ex A
> Dim strServerName
> strServerName = Request.ServerVariables("SERVER_NAME")
>
> Select Case strServerName
> Case "www.domain1.com"
> Response.redirect("domain1/default.asp")
> Case "www.domain2.org"
> Response.redirect("domain2/default.asp")
> Case Else
> Response.Redirect("bad.asp")
> End Select
>
> Code Ex B
> Dim strServerName
> strServerName = Request.ServerVariables("SERVER_NAME")
>
> Select Case strServerName
> Case "www.domain1.com"
> Server.Transfer("domain1/default.asp")
> Case "www.domain2.org"
> Server.Transfer("domain2/default.asp")
> Case Else
> Response.Redirect("bad.asp")
> End Select
>
> Thanks
> Kevin Vogler
>
>
grw Guest



Reply With Quote

