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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Saravanan PonnusamyPosted Jul 5, 2018, 9:10 AM
Faisal PathanPosted Jun 30, 2018, 3:20 AM