M
MikeZ
I know this is an ASP.NET question, but I know some experts can help me in
this newsgroup:
I have an asp.net web page, I need to push indefinite live video stream to
web Brower, and here is the code:
''''''''''''''''''''''''''''''''''''''''''''''
protected void Page_Load(object sender, EventArgs e)
{
while (true)
{
tmpArray = GetMethod();
Response.BinaryWrite(tmpArray);
Response.BinaryWrite(MJPGHeader);
Response.Flush();
}
}
''''''''''''''''''''''''''''''''''''''''''''''''
It works fine. But when the WebBrowser closed, APS.NET still loops inside of
the Page_Load Event, and never come out.
My question is: How can I exit Page_Load subroutine after client web browser
closed. It is strange that No exception throwed in Response.BinaryWrite()
when client closed.
Thanks
this newsgroup:
I have an asp.net web page, I need to push indefinite live video stream to
web Brower, and here is the code:
''''''''''''''''''''''''''''''''''''''''''''''
protected void Page_Load(object sender, EventArgs e)
{
while (true)
{
tmpArray = GetMethod();
Response.BinaryWrite(tmpArray);
Response.BinaryWrite(MJPGHeader);
Response.Flush();
}
}
''''''''''''''''''''''''''''''''''''''''''''''''
It works fine. But when the WebBrowser closed, APS.NET still loops inside of
the Page_Load Event, and never come out.
My question is: How can I exit Page_Load subroutine after client web browser
closed. It is strange that No exception throwed in Response.BinaryWrite()
when client closed.
Thanks