Ask a Question related to ASP, Design and Development.
-
Suburbiana68 #1
ASP Question - Images ...
I am designing a website that is based from an Access database; in the
database I have a table called "Categories" with fields called "Category"
and "CategoryPic".
On my index page I have coding to get the list of Categories, called
rsCategories. What I am attempting to do is create ASP code that would
retrieve an associated GIF file from my images folder when a particular
"Category" is chosen (ie. if you choose CategoryA from the recordset, then
CategoryA.gif would appear on the page, CategoryB would retrieve
CategoryB.gif, etc.).
Can anyone kindly assist me in completing this one piece of code that is
driving me nuts?
Thanks in advance,
Craig
Suburbiana68 Guest
-
Images appear as question marks
I need help! I just uploaded my first dreamweaver website to yahoo. My images appear as question marks. I've uploaded the images in file manager... -
Placed Images in CS : Quick question >>>
greetings, just a quick question about placed images in illustrator cs. when sizing a placed and linked image, does illustrator recalculate the... -
Tutorial Images Question
Hello, I am new to flash and attempting to do the first tutorial and am currently stuck, any advice would be greatly appreciated. My files have... -
Images in Filemaker Pro Question
Hey, I have filemaker pro 6 trial (got the trial until I'm sure this can be done!) and have make a database that includes images, and here is... -
PHP Newbie question regarding images
I am looking for a way to extract the IPTC info from image files, and then search on the variables in each field, then display the image the... -
Jeff Clark #2
Re: ASP Question - Images ...
show us what you have so far,
but generally it is this:
<img src = "<%= rsCategories("CategoryPic") %>.gif" border=0 >
Notice that I beat "Ray at Home" at helping you out here.
"Suburbiana68" <suburbiana68@hotmail.com> wrote in message
news:oiolb.143481$6C4.9369@pd7tw1no...> I am designing a website that is based from an Access database; in the
> database I have a table called "Categories" with fields called "Category"
> and "CategoryPic".
> On my index page I have coding to get the list of Categories, called
> rsCategories. What I am attempting to do is create ASP code that would
> retrieve an associated GIF file from my images folder when a particular
> "Category" is chosen (ie. if you choose CategoryA from the recordset, then
> CategoryA.gif would appear on the page, CategoryB would retrieve
> CategoryB.gif, etc.).
>
> Can anyone kindly assist me in completing this one piece of code that is
> driving me nuts?
>
> Thanks in advance,
> Craig
>
>
Jeff Clark Guest
-
JohnBon #3
Re: ASP Question - Images ...
Maybe you can do like this:
response.write "<img src='../imagefolder/"& rsCategories("Category") &".gif'>"
/Johnbon
"Suburbiana68" <suburbiana68@hotmail.com> wrote in message news:<oiolb.143481$6C4.9369@pd7tw1no>...> I am designing a website that is based from an Access database; in the
> database I have a table called "Categories" with fields called "Category"
> and "CategoryPic".
> On my index page I have coding to get the list of Categories, called
> rsCategories. What I am attempting to do is create ASP code that would
> retrieve an associated GIF file from my images folder when a particular
> "Category" is chosen (ie. if you choose CategoryA from the recordset, then
> CategoryA.gif would appear on the page, CategoryB would retrieve
> CategoryB.gif, etc.).
>
> Can anyone kindly assist me in completing this one piece of code that is
> driving me nuts?
>
> Thanks in advance,
> CraigJohnBon Guest
-
Suburbiana68 #4
Re: ASP Question - Images ...
Thanks Jeff and Jon, still don't seem to get any response, just errors ...
here is what I originally had:
<img src="/images/headergifs/<%=rsCategories.FieldValue("CategoryPic",
Container) %>" alt="Category Pic" width="79" height="79" border="0"
id="categoryPics" />
Which delivers the error:
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
from that line of code.
I'm still bamboozled, kind of new at the programming side of this ... again
thanks in advance for any assistance.
Craig
"Jeff Clark" <JeffC@NO_SPAMreturnventures.com> wrote in message
news:Okr22gHmDHA.1488@TK2MSFTNGP12.phx.gbl..."Category"> show us what you have so far,
> but generally it is this:
>
> <img src = "<%= rsCategories("CategoryPic") %>.gif" border=0 >
>
> Notice that I beat "Ray at Home" at helping you out here.
>
>
> "Suburbiana68" <suburbiana68@hotmail.com> wrote in message
> news:oiolb.143481$6C4.9369@pd7tw1no...> > I am designing a website that is based from an Access database; in the
> > database I have a table called "Categories" with fields calledthen> > and "CategoryPic".
> > On my index page I have coding to get the list of Categories, called
> > rsCategories. What I am attempting to do is create ASP code that would
> > retrieve an associated GIF file from my images folder when a particular
> > "Category" is chosen (ie. if you choose CategoryA from the recordset,>> > CategoryA.gif would appear on the page, CategoryB would retrieve
> > CategoryB.gif, etc.).
> >
> > Can anyone kindly assist me in completing this one piece of code that is
> > driving me nuts?
> >
> > Thanks in advance,
> > Craig
> >
> >
>
Suburbiana68 Guest
-
Jeff Clark #5
Re: ASP Question - Images ...
oh well did you do a set statement for the rsCategories?
set rsCategories = server.createobject("adodb.recordset")
also, maybe you have no records returned. did you test for that?
"Suburbiana68" <suburbiana68@hotmail.com> wrote in message
news:8evlb.147467$pl3.61154@pd7tw3no...again> Thanks Jeff and Jon, still don't seem to get any response, just errors ...
> here is what I originally had:
>
> <img src="/images/headergifs/<%=rsCategories.FieldValue("CategoryPic",
> Container) %>" alt="Category Pic" width="79" height="79" border="0"
> id="categoryPics" />
>
> Which delivers the error:
> Error Type:
> Microsoft VBScript runtime (0x800A01A8)
> Object required: ''
>
> from that line of code.
>
> I'm still bamboozled, kind of new at the programming side of this ...would> thanks in advance for any assistance.
> Craig
>
> "Jeff Clark" <JeffC@NO_SPAMreturnventures.com> wrote in message
> news:Okr22gHmDHA.1488@TK2MSFTNGP12.phx.gbl...> "Category"> > show us what you have so far,
> > but generally it is this:
> >
> > <img src = "<%= rsCategories("CategoryPic") %>.gif" border=0 >
> >
> > Notice that I beat "Ray at Home" at helping you out here.
> >
> >
> > "Suburbiana68" <suburbiana68@hotmail.com> wrote in message
> > news:oiolb.143481$6C4.9369@pd7tw1no...> > > I am designing a website that is based from an Access database; in the
> > > database I have a table called "Categories" with fields called> > > and "CategoryPic".
> > > On my index page I have coding to get the list of Categories, called
> > > rsCategories. What I am attempting to do is create ASP code thatparticular> > > retrieve an associated GIF file from my images folder when ais> then> > > "Category" is chosen (ie. if you choose CategoryA from the recordset,> > > CategoryA.gif would appear on the page, CategoryB would retrieve
> > > CategoryB.gif, etc.).
> > >
> > > Can anyone kindly assist me in completing this one piece of code that>> >> > > driving me nuts?
> > >
> > > Thanks in advance,
> > > Craig
> > >
> > >
> >
>
Jeff Clark Guest



Reply With Quote

