Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Update email

Author  Topic 

akpaga
Constraint Violating Yak Guru

331 Posts

Posted - 2010-01-26 : 12:01:56
hi friends

i have a form view with an update button . Its populated from the database.

My query is i want to send an email whenever there is an update in any of the form view row but the message body of the email should contain
only the row for which the text has been changed. Since we cant know what the user may update each time i am in dilemma as to how to do it... using c#.net.

Thank you

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-01-26 : 12:03:57
is it a list of items with update button for each?
Go to Top of Page

akpaga
Constraint Violating Yak Guru

331 Posts

Posted - 2010-01-26 : 13:01:13
thansk for your response visakh16.

yes its a list of items but only one update button..i.e edit template
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-01-26 : 13:07:33
and you do have ids for individual list controls?
Go to Top of Page

akpaga
Constraint Violating Yak Guru

331 Posts

Posted - 2010-01-26 : 13:09:27
yes visakh
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-01-26 : 13:12:50
then isnt it enough to sent id as a part of click action and then send email for data corresponding to id?
Go to Top of Page

akpaga
Constraint Violating Yak Guru

331 Posts

Posted - 2010-01-26 : 13:14:33
how would i know which id text has changed ...
Go to Top of Page

akpaga
Constraint Violating Yak Guru

331 Posts

Posted - 2010-01-28 : 11:46:33
thanks visakh 16 for respoding to my query but i got the problem solved
from the link below

[url]http://www.aspnet101.com/aspnet101/tutorials.aspx?id=15.[/url]

Just in case someone else would need it.


Go to Top of Page

kirangentlebreeze1987
Starting Member

14 Posts

Posted - 2010-02-12 : 04:00:24
hello friend,i am a beginner in c#.net...check this if my idea gonna work fine...just assign the updated item to a string..and put that string in the mailbody....

kkk
Go to Top of Page
   

- Advertisement -