Can anyone suggest how to write it so that it writes " instead of "".
I have tried all combinations of adding " to the code but as soon as I think I am there I get throw out again.
Expand|Select|Wrap|Line Numbers
- if CurrentRatio > TargetRatio then ' We'll scale height
- strResize = "width=""" & intDesiredWidth & """"
- else
- strResize = "height=""" & intDesiredHeight & """" ' We'll scale width
- end if
- else
- strResize = ""
- end if
- ImageResize = strResize
I got to this point and it wrote the "to the page but kept the inner "", when I took them out I got asp errors again.
Expand|Select|Wrap|Line Numbers
- strResize = "height= " """ & intDesiredHeight & """"" ' We'll scale width
- end if
- else
- strResize = ""
- end if
Any help would be great before I pull my hair out!
Thanks
Richard