Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 14th, 2006, 05:02 PM
Authorized User
Join Date: Apr 2006
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default if the approve button is click for the second time

I have a form which needs to be filled up by the manager for new employee. Once the form has been filled up ,the data gets saved in the database in the pending status and an email is sent to the RD. Now the RD clicks on the link in the email to approves the form .And the form gets saved in the database in the Approved mode.
Now if the RD ,by mistake clicks on the link in the email to approve the form, a message will show that the form has been approved already.

So now I need to get the last part of the form functioning. that if the form has been approved by the RD already, and if the RD clicks on the link to approve it should give me the message that the form has been updated alredy.

So can anybody where to add the functionality.
I am using C# to code.
I have a fuction called EmailForm() which gets activated when the submit button in the form is clicks.

Old August 15th, 2006, 08:21 AM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

In the email that is sent to the RD i would add a key to the link, for example the href might be:

a href="www.mysite.com/somepage.aspx?id=nnnn

Have the ID be the unique ID from the database and when the page is loaded, go to the database first and see if the record associated with this ID has been processed yet, if it has send a message back to the RD saying as such and, if not, process the form.


"The one language all programmers understand is profanity."

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to button click Y/N in an email and kenn_rosie VB.NET 2002/2003 Basics 0 March 2nd, 2006 07:36 PM
Button Click ~Bean~ ASP.NET 1.0 and 1.1 Basics 2 September 27th, 2005 09:32 AM
Login Click Button mrideout BOOK: Beginning ASP.NET 1.0 6 August 12th, 2004 10:11 AM
Print on Button Click mahulda ASP.NET 1.0 and 1.1 Basics 2 August 5th, 2004 02:50 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.