hi Developers ,
I am sending an email from my Application (C#.net). Body of email have 2 buttons approve and Reject ..I want to know whether i can update database on clicking approve or reject button without opening any link to my application.
i get confused so suggest me to i am done this task


Jitendra ShekhawatRank #1,909 · 772 reputationPosted Mar 22, 2017, 9:28 PM EDT
You can try with simple ajax calls like below:
Consider this is the html on your email:
type="text/javascript"> // Ajax call using jquery to your website's page function callAjax(actiontype)public partial class WebForm1 : System.Web.UI.Pageprotected void Page_Load(object sender, EventArgs e){ var action = Request.QueryString["paramvalue"];if (!string.IsNullOrEmpty(action)) { // implement the rest of the stuffif (action.ToLower() == "accept"){ // update DB } else if (action == "reject"){ // Update DB } } } }Hope this helps!
Paul RajsRank #2,423 · 582 reputationPosted Mar 22, 2017, 10:13 PM EDT
@Jitendra Shekhawat i have to send this html page to Mail.then if i click the Accept or reject button na i will come to my page and update my database table as my want.