how to get notification on data insertion for approval in asp.net C#

Posted by Arvindtomar under ASP.NET on 1/8/2014 | Points: 10 | Views : 7414 | Status : [Member] | Replies : 4
I want to get notification like facebook, when any person insert data or register and admin get notification for approval in asp.net or aspx page npt on email id




Responses

Posted by: vishalneeraj-24503 on: 1/8/2014 [Member] [MVP] Platinum | Points: 25

Up
0
Down
You can implement email logic,when insert operation happens.

In btn_save event,if record successfully inserts into DB,then write email logic.

for email:-
http://www.codeproject.com/Tips/371417/Send-Mail-Contact-Form-using-ASP-NET-and-Csharp
http://www.aspdotnet-suresh.com/2010/11/introduction-this-article-i-will.html

Arvindtomar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Arvindtomar on: 1/8/2014 [Member] Starter | Points: 25

Up
0
Down
Thanks Vishal@Neeraj .But sir email logic work on smtp but when i use aspx page for data insertion and second page on admin side how get notification and approve data(publish) when data is valid other wise data data is pending

Arvindtomar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: vishalneeraj-24503 on: 1/8/2014 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Then,take a status column as varchar(10) in your table.
1st time when you are inserting data,then set status = 'Pending '.
when on another page will populate,the record will be displayed as Pending in the gridview. take one button inside gridview as Approved,click on this button,
update your status column as 'Approved' based on primery_key value.
next time the same record will be displayed as Approved in gridview.

Arvindtomar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: kgovindarao523-21772 on: 1/8/2014 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,
In your database table, take a flag column and when user clicks on activation link,
you have to set flag for that user by using your code. If user doesn’t click on activation link, the flag is not set and user is in pending state.

Thank you,
Govind

Arvindtomar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response