Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

Kill request without sending any response or error to the browser

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alphapage - 28 Apr 2008 17:46 GMT
Hello,

I want to examine the HttpContext of the submitted requests. If the context
is validated, no problem  I execute ProcessRequest. But if the context
doesn't match, I want to stop the request execution (I mean close the process
and clean it in memory).  I don't want to return any error or any content to
the webbrowser (I don't care if the browser is still waiting for a response
until its timeout setting).
I only find a  way to raise an error to the webbrowser, but I want to
dispose the request without send a response to  the client.

Thanks in advance for your help.
Fernando Rodriguez - 29 Apr 2008 00:21 GMT
just call context.Response.End()

> Hello,
>
[quoted text clipped - 12 lines]
>
> Thanks in advance for your help.
bruce barker - 29 Apr 2008 01:06 GMT
with ii6, there is no way. iis has the pipe open to the client, not asp.net

when its an asp.net page, iis opens a pipe to the asp.net worker process,
sends the input and reads the reponse. there is no protocol to tell iis to
close the connection without sending a fin.

-- bruce (sqlwork.com)

> Hello,
>
[quoted text clipped - 8 lines]
>
> Thanks in advance for your help.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.