ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 8th, 2000, 06:15 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
How do you Perform Event Procedures

<i><b>Originally posted by : KevinM (mullarkey@fs5.ee.umist.ac.uk)</b></i><br />All I want to do is add up a few text box values at the click of a button, but I keep getting an error.<br /><br />So how would I add up two boxes called MyInt1 and MyInt2 and display it as a Response.Write and in a textbox...<br /><br />Here is my Code..<br /><br /><SCRIPT LANGUAGE=vbscript><br />Sub cmdButton_OnClick()<br />'GET The TOTAL PRICE<br />Dim int1, int2, intTotalPrice<br /><br />int1=MyInt1.Value<br />int2=MyInt2.Value<br />intTotalPrice=int1+int2<br />End Sub<br /></SCRIPT><br /><br /><%Respons.Write intTotalPrice %><br /><br />All I get is an error 'intTotalPrice Object required' as it is empty!<br /><br />Many Thanks<br /><br />Kevin M<br /><br />

Reply With Quote
  #2  
Old May 10th, 2000, 10:23 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : steve</b></i><br />You had the sub procedure on the client side and then trying to response.write something on the server side that would have calculated on the client side<br /><br /><SCRIPT runat=server LANGUAGE=vbscript><br />Sub Total()<br />'GET The TOTAL PRICE<br />Dim int1, int2, intTotalPrice<br />myint1 = 1<br />myint1 = 2<br /><br />int1 = myint1<br />int2 = myint2<br /><br />intTotalPrice=cint(int1) + cint(int2)<br />response.write intTotalPrice<br />End Sub<br />call Total()<br /></SCRIPT><br /><br />All I get is an error 'intTotalPrice Object required' as it is empty!<br /><br />Many Thanks<br /><br />Kevin M<br /><br />

Reply With Quote
  #3  
Old May 10th, 2000, 10:27 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : KevinM (mullarkey@fs5.ee.umist.ac.uk)</b></i><br />...

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > How do you Perform Event Procedures


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT