I have an Application which Sends EMAILs in block, say 500 Emails in one GO. User has the choise to STOP the process in between.
The STOP button is printed to client uisng response.write. In click of this Image / Button the Stop_Process js method is called.
I an not being able to Access the code behind Global/public/session variable / hidden filed values from this js method please help.
CODE for your Reference
====================== CODE BEHIND
public int TotalAttemTEmails = 0;
public int totalDuplicateMail = 0;
public int totalSucessMail = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request.QueryString["IsStop"] != null)
{
if (Request.QueryString["IsStop"].ToString() == "true")
StopProcessing();
}
}
}
private void StopProcessing()
{
WANT to retain the Processed values of the public variables and
DO required processing using those.
}
=============== JS code
![]() | ![]() | ![]() | Execution Details |


Replies
Know the answer? Post it — somebody with the same question will find it here.