here is my code..
ObjCancellationTokenSource = new CancellationTokenSource();
CancellationToken token = ObjCancellationTokenSource.Token;
var ObjTask = Task.Factory.StartNew(() =>
{
while (!token.IsCancellationRequested)
{
for(i=0;i
{
----------some operation------
}
Response.Write(""); // not firing
Response.Redirect("Home.aspx", false);// raising error or not firing
}
}, token);
So, here is my question is...
once the loop is finish inside the task im trying to show alert through Response.Write and after i need to redirect my page to another page through Response.Redirect...
but both or not working...
how can i achive it??
if i do both Response.Redirect and Response.Write without using task operation.. its working fine..
i googled this .. but in all sites , all are using Console.Write method to show some alert.. i dont want that.. i need to show real javascript alert and redirect the page ....
pls dont give any web reference.. give some code...
thanks all..
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Faisal PathanRank #291 · 8.6K reputationPosted Jun 29, 2018, 11:20 PM EDT
Saravanan PonnusamyRank #634 · 3.8K reputationPosted Jul 5, 2018, 5:10 AM EDT