Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

forcing upper case within HTML/ASP code

Status
Not open for further replies.

Ogi

Technical User
Nov 9, 2001
896
GB
Hi,

I've got some HTML/ASP code (I don't know how to program ASP, I'm just hacking it as I go along) that reads:-

<IMG src="../../../images/clothing/<%=(sch.Fields.Item("StyleNumber").Value)%>.gif" align="right" height=156 width=162>

Is there a way I can force uppercase on the sch.Fields.Item? If so, how?

Cheers,
Carl.
 
Try Ucase in front of your recordset object.

<%=Ucase(sch.Fields.Item("StyleNumber").Value)%>

I hope this helps.
 
dan is correct! We are running on unix. I've converted all our required files to uppercase and am forcing the ASP code to use upper case.

Now all I need to do is learn how to write ASP code properly instead of hacking what other people have written for me! :)

Many thanks,
Carl.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top