If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > If Statement in ASP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-16-04, 19:11
sajeed sajeed is offline
Registered User
 
Join Date: May 2003
Posts: 16
If Statement in ASP

Hello, I have a small application in ASP which handles all the shipping information for our company. I am trying to add something and not having luck with it. I was wondering if someone can help me with it.

I want an option, which runs in the background. So lets say when we are entering the shipping information in our application. And when we select Texas as the state, it automatically adds $10.00 in the total as Sales Tax. And if its some other state then it just leave as $0.00

Thanks for your help in advance.

Sajeed
Reply With Quote
  #2 (permalink)  
Old 01-16-04, 19:36
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
<%
If LCase(state) = "texas" Then
Sales = Sales + 10.00
End If
%>
Reply With Quote
  #3 (permalink)  
Old 01-17-04, 06:07
sajeed sajeed is offline
Registered User
 
Join Date: May 2003
Posts: 16
Thank you

Thanks for your help. It works now. :-)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On