J
jurot
Hi,
Can somebody help me,pls?
After the button-click on the web-page I execute another thread
private void btnExecutePlugin_Click(object sender,
System.EventArgs e)
{
MyThread pt = new MyThread( new MyFinalizeCallback(
MyCallbackFunction ) );
Thread t = new Thread( new ThreadStart( pt.ThreadProc
) );
t.Start();
}
..and now in MyCallbackFunction, which is called after the MyThred is
finished I want to send some response to the webpage. (e.g.
HttpContext.Current.Response("DONE!"))
I also tried to use it in IHttpAsyncHandler:
[code:1:75a49b527e]
public IAsyncResult BeginProcessRequest(HttpContext ctx,
AsyncCallback cb, object obj)
{
ctx.Response("HELLO WORLD!"); //THIS DIDN'T
WORK
ProcessRequestDelegate prg =
new ProcessRequestDelegate(ProcessRequest);
return prg.BeginInvoke(ctx, cb, obj);
}
[/code:1:75a49b527e]
..but it also didn't work.
Thanks in advance..
Jurot
Can somebody help me,pls?
After the button-click on the web-page I execute another thread
private void btnExecutePlugin_Click(object sender,
System.EventArgs e)
{
MyThread pt = new MyThread( new MyFinalizeCallback(
MyCallbackFunction ) );
Thread t = new Thread( new ThreadStart( pt.ThreadProc
) );
t.Start();
}
..and now in MyCallbackFunction, which is called after the MyThred is
finished I want to send some response to the webpage. (e.g.
HttpContext.Current.Response("DONE!"))
I also tried to use it in IHttpAsyncHandler:
[code:1:75a49b527e]
public IAsyncResult BeginProcessRequest(HttpContext ctx,
AsyncCallback cb, object obj)
{
ctx.Response("HELLO WORLD!"); //THIS DIDN'T
WORK
ProcessRequestDelegate prg =
new ProcessRequestDelegate(ProcessRequest);
return prg.BeginInvoke(ctx, cb, obj);
}
[/code:1:75a49b527e]
..but it also didn't work.
Thanks in advance..
Jurot