.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET 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 March 24th, 2002, 03:05 PM
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
Multiple Postbacks

<i><b>Originally posted by : Hugh Anderson (webmaster@unclehughie.com)</b></i><br />There's undoubtedly a simple answer to this, but this newbie can't find it. I have registraryion form that gathers text values. On postback, text is changed to a thank you message and a request to correct the entries, if necessary. Users are asked to click an OK button to proceed. The OK button handler sends me an email with the entries and I also want it to perform a database entry operation. My problem is that I get two emails: one when the first postback happens, and another when the OK button is clicked. I've tried variois postback conditionals without success. Anybody any ideas? <br />

Reply With Quote
  #2  
Old March 26th, 2002, 03:45 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 : Kurt Vandevelde (Kurt.Vandevelde@CMG.Be)</b></i><br /><br /><br /><br />------------<br />Hugh Anderson at 3/24/2002 1:05:22 PM<br /><br />There's undoubtedly a simple answer to this, but this newbie can't find it. I have registraryion form that gathers text values. On postback, text is changed to a thank you message and a request to correct the entries, if necessary. Users are asked to click an OK button to proceed. The OK button handler sends me an email with the entries and I also want it to perform a database entry operation. My problem is that I get two emails: one when the first postback happens, and another when the OK button is clicked. I've tried variois postback conditionals without success. Anybody any ideas? <br /><br />Your way of work isn't 100% clear to me, but maybe this can solve your problem :<br /><br />- use a session variable to stock if an email was sent or not<br />- use a (custom) validator and page.isvalid or [validator].isvalid<br />- test your database to see of the values are already insert <br /><br />Kurt

Reply With Quote
  #3  
Old March 26th, 2002, 05:20 PM
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 : Hugh Anderson (webmaster@unclehughie.com)</b></i><br />Thanks, Kurt, but I didn't explain clearly enough. My problem seems to be that the PageLoad event also triggers the OK-click event in the first postback. Then clicking on the OK button triggers that event again in a second postback. What I'm trying to do is to stop the OK-click event from firing in the first postback.<br />Hope this is clearer.<br /><br />------------<br />Kurt Vandevelde at 3/26/2002 1:45:23 AM<br /><br /><br /><br /><br />------------<br />Hugh Anderson at 3/24/2002 1:05:22 PM<br /><br />There's undoubtedly a simple answer to this, but this newbie can't find it. I have registraryion form that gathers text values. On postback, text is changed to a thank you message and a request to correct the entries, if necessary. Users are asked to click an OK button to proceed. The OK button handler sends me an email with the entries and I also want it to perform a database entry operation. My problem is that I get two emails: one when the first postback happens, and another when the OK button is clicked. I've tried variois postback conditionals without success. Anybody any ideas? <br /><br />Your way of work isn't 100% clear to me, but maybe this can solve your problem :<br /><br />- use a session variable to stock if an email was sent or not<br />- use a (custom) validator and page.isvalid or [validator].isvalid<br />- test your database to see of the values are already insert <br /><br />Kurt

Reply With Quote
  #4  
Old March 26th, 2002, 05:54 PM
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 : jeff raven (jeff.raven@dbase-solutions.co.uk)</b></i><br />Hi, why dont you use a client side form validator to check if all entries are correct in the text fields, then send this off to a script page to do your database entry and send your email, then redirect back to original page with a querystring to say "thank you message".<br /><br /><br />------------<br />Hugh Anderson at 3/26/2002 3:20:38 PM<br /><br />Thanks, Kurt, but I didn't explain clearly enough. My problem seems to be that the PageLoad event also triggers the OK-click event in the first postback. Then clicking on the OK button triggers that event again in a second postback. What I'm trying to do is to stop the OK-click event from firing in the first postback.<br />Hope this is clearer.<br /><br />------------<br />Kurt Vandevelde at 3/26/2002 1:45:23 AM<br /><br /><br /><br /><br />------------<br />Hugh Anderson at 3/24/2002 1:05:22 PM<br /><br />There's undoubtedly a simple answer to this, but this newbie can't find it. I have registraryion form that gathers text values. On postback, text is changed to a thank you message and a request to correct the entries, if necessary. Users are asked to click an OK button to proceed. The OK button handler sends me an email with the entries and I also want it to perform a database entry operation. My problem is that I get two emails: one when the first postback happens, and another when the OK button is clicked. I've tried variois postback conditionals without success. Anybody any ideas? <br /><br />Your way of work isn't 100% clear to me, but maybe this can solve your problem :<br /><br />- use a session variable to stock if an email was sent or not<br />- use a (custom) validator and page.isvalid or [validator].isvalid<br />- test your database to see of the values are already insert <br /><br />Kurt

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Multiple Postbacks


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 3 hosted by Hostway
Stay green...Green IT