Forums

ASP

This topic is locked

Searching a extention

Posted 12 Nov 2006 23:33:24
1
has voted
12 Nov 2006 23:33:24 Dick Medema posted:
Hello People,
Everbody they works with ASP and databases nows the problem with emtpy fields in a database, lets thake a field thats contains name`s for images.
When you want to display the images but the field is emtpty you get this ugly red cross.
Now is this very easy to fix this with a little handmade code:
<%Dim fixError
fixError = Rsset.Fields.Item("images01".Value
IF fixError <>"" THEN%>
The images from database
<%ELSE%>
replaced images
<%End If%>
This is very easy to make and works very fine and not alone with image, text and value (true and False) ect, but when you want to juse another script in the same page then you must Dim the name again to a differend name.

What is my question is there somewhere on WWW a extention (plugin dreamweaver) for this script, or is it possible that DMXzone built can built this extention?
Greetings,
Dick

Replies

Replied 13 Nov 2006 13:01:32
13 Nov 2006 13:01:32 Dave Clarke replied:
not an answer to the script thing but if you are working with images why not create a default image that appears in the database if no image is present, you could make it so it says "sorry no image available" or something similar.. hey presto no more red crosses.
that's what i've done here www.reunite.co.uk/latest.asp

ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome.
www.reunite.co.uk
Replied 13 Nov 2006 23:29:12
13 Nov 2006 23:29:12 Dick Medema replied:
Hi Dave,
Thanks for replying to my question, yes this is what I mean and I working a long with this script.
But this script can be jused for a lot off things to replaced when some varibels are right or wrong, empty field or not and True or false Ect, Ect.

So this little script can be very juse full, but when I have a ASP page with lot off code generaded with Dreamweaver and then I go to handscripting that cost me some time, because you must testing the page, and testing again and again.
But when I have Plugin then I can working faster and the errors brings back to a minimum.

So People who nows where I can find Extention for Dreamweaver that can make this little script or who can make a Extention like this.

Thanks,
Dick

Reply to this topic