286 references to Response
System.Runtime.Remoting (8)
channels\http\httpremotinghandler.cs (8)
295Stream outputStream = context.Response.OutputStream; 296context.Response.Clear(); 297context.Response.ClearHeaders(); 298context.Response.ContentType = ComposeContentType("text/plain", Encoding.UTF8); 299context.Response.TrySkipIisCustomErrors = true; 300context.Response.StatusCode = (int) HttpStatusCode.InternalServerError; 301context.Response.StatusDescription = CoreChannel.GetResourceString("Remoting_InternalError"); 547HttpResponse httpResponse = context.Response;
System.ServiceModel.Web (7)
System\ServiceModel\Description\WebScriptClientGenerator.cs (1)
86HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Public);
System\ServiceModel\Dispatcher\HelpPage.cs (4)
101HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Public); 102HttpContext.Current.Response.Cache.SetMaxAge(TimeSpan.MaxValue); 103HttpContext.Current.Response.Cache.AddValidationCallback(new HttpCacheValidateHandler(this.CacheValidationCallback), this.startupTime); 104HttpContext.Current.Response.Cache.SetValidUntilExpires(true);
System\ServiceModel\Web\CachingParameterInspector.cs (2)
268HttpCachePolicy cache = HttpContext.Current.Response.Cache; 352HttpContext.Current.Response.AddCacheDependency(new CacheDependency[] { cacheDependency });
System.Web (224)
Abstractions\HttpContextWrapper.cs (1)
177return new HttpResponseWrapper(_context.Response);
DefaultHttpHandler.cs (2)
69HttpResponse response = _context.Response; 114HttpResponse response = _context.Response;
ErrorFormatter.cs (5)
179context.Response.UseAdaptiveError = true; 249TextWriter textWriter = context.Response.SwitchWriter(stringWriter); 251context.Response.SwitchWriter(textWriter); 291if (String.Compare(context.Response.ContentType, 0, 294context.Response.ContentType = wmlContentType;
Handlers\AssemblyResourceLoader.cs (6)
506context.Response.Clear(); 636HttpCachePolicy cachePolicy = context.Response.Cache; 652context.Response.ContentType = contentType; 684StreamWriter writer = new StreamWriter(context.Response.OutputStream, reader.CurrentEncoding); 690Stream outputStream = context.Response.OutputStream; 725context.Response.IgnoreFurtherWrites();
Handlers\TraceHandler.cs (1)
95_response = _context.Response;
Hosting\IIS7WorkerRequest.cs (4)
1679ctx.Response.SynchronizeStatus(status, subStatus, description); 2194ctx.Response.SynchronizeHeader(headerIndex, name, value); 2224ctx.Response.SynchronizeHeader(knownHeaderIndex, name, value); 2355context.Response.HeadersWritten = true;
HttpApplication.cs (10)
382response = _context.Response; 3449context.Response.GenerateResponseHeadersForHandler(); 3592context.Response.GenerateResponseHeadersForHandler(); 3622context.Response.GenerateResponseHeadersForHandler(); 3650|| context.Response.StatusCode != (int)HttpStatusCode.SwitchingProtocols) { 3659context.Request.StoreReferenceToResponseCookies(context.Response.GetCookiesNoCreate()); 3693_application.Context.Response.FilterOutput(); 3924context.Response.FilterOutput(); 4181context.Response.SyncStatusIntegrated(); 4241context.Response.SyncStatusIntegrated();
HttpBufferlessInputStream.cs (2)
236if (!_context.Response.IsClientConnected) { 314_context.Response.CloseConnectionAfterError();
HttpContext.cs (7)
366Response.StatusCode = (int)HttpStatusCode.SwitchingProtocols; // 101 368Response.AppendHeader("Sec-WebSocket-Protocol", subprotocol); 683obj = Response; 1111Response.TrySkipIisCustomErrors = true; 1112HttpRuntime.ReportAppOfflineErrorMessage(Response, HttpRuntime.AppOfflineMessage); 1133Response.ReportRuntimeError(e, true /*canThrow*/, false); 1137Response.ReportRuntimeError(eReport, false /*canThrow*/, false);
HttpDebugHandler.cs (16)
153context.Response.Write(SR.GetString(SR.Debugging_forbidden, context.Request.Path)); 154context.Response.StatusCode = 403; 163context.Response.Write(SR.GetString(SR.Invalid_Debug_Request)); 164context.Response.StatusCode = 500; 171context.Response.Write("OK"); 176context.Response.Write(SR.GetString(SR.Invalid_Debug_Request)); 177context.Response.StatusCode = 500; 191context.Response.Write(SR.GetString(SR.Debug_Access_Denied, context.Request.Path)); 192context.Response.StatusCode = 401; 202context.Response.Write(SR.GetString(SR.Invalid_Debug_ID)); 203context.Response.StatusCode = 500; 223context.Response.Write(SR.GetString(SR.Debug_Access_Denied, context.Request.Path)); 224context.Response.StatusCode = 401; 243context.Response.Write(SR.GetString(SR.Error_Attaching_with_MDM, "0x" + rc.ToString("X8", CultureInfo.InvariantCulture))); 244context.Response.StatusCode = 500; 252context.Response.Write("OK");
HttpRequest.cs (3)
265return _context.Response; 2598(_context.Response.StatusCode == 404 || _context.Response.StatusCode == 400) &&
HttpRuntime.cs (12)
1474context.Response.InitResponseWriter(); 1510context.Response.InitResponseWriter(); 1550context.Response.UpdateNativeResponse(sendHeaders); 1561context.Response.UpdateNativeResponse(sendHeaders); 1585context.Response.Dispose(); 1604UpdatePerfCounters(context.Response.StatusCode); 1683context.Response.InitResponseWriter(); 1706context.Response.InitResponseWriter(); 1721context.Response.InitResponseWriter(); 1731context.Response.InitResponseWriter(); 1748HttpResponse response = context.Response; 2118context.Response.Dispose();
httpserverutility.cs (8)
318HttpResponse response = _context.Response; 432HttpResponse response = _context.Response; 697_context.Response.End(); 730_context.Response.End(); 764HttpResponse response = _context.Response; 839context.Response.SetOverrideErrorFormatter(errorFormatterGenerator.GetErrorFormatter(e)); 842context.Response.ReportRuntimeError(e, false, true); 985Encoding e = (_context != null) ? _context.Response.ContentEncoding : Encoding.UTF8;
OutputCacheModule.cs (4)
291string coding = context.Response.GetHttpHeaderContentEncoding(); 566response = context.Response; 1029response = context.Response; 1140if (cache.VaryByContentEncodings.IsModified() && !cache.VaryByContentEncodings.IsCacheableEncoding(context.Response.GetHttpHeaderContentEncoding())) {
Security\AnonymousIdentificationModule.cs (6)
97context.Response.Cookies.RemoveCookie(s_CookieName); 98context.Response.Cookies.Add(cookie); 104context.Response.Redirect(context.Request.RawUrl, false); 180context.Response.Cookies.Add(cookie); 271context.Response.Cookies.Add(cookie); 274context.Response.Redirect(context.Request.RawUrl);
Security\AuthStoreRoleProvider.cs (4)
596context.Response.Clear(); 597context.Response.StatusCode = 500; 598context.Response.Write(AuthStoreErrorFormatter.GetErrorText()); 599context.Response.End();
Security\BackStopAuthenticationModule.cs (6)
106if (context.Response.StatusCode > 200) { // Invalid credentials 107if (context.Response.StatusCode == 401) 119if (context.Response.StatusCode > 200) { // Invalid credentials 120if (context.Response.StatusCode == 401) 140context.Response.Write(AuthFailedErrorFormatter.GetErrorText()); 143context.Response.GenerateResponseHeadersForHandler();
Security\CookielessHelper.cs (7)
60_Context.Response.SetAppPathModifier("(" + _Headers + ")"); 108_Context.Response.SetAppPathModifier("(" + _Headers + ")"); 113string newFilePath = _Context.Response.RemoveAppPathModifier(filePath); 172_Context.Response.SetAppPathModifier("(" + _Headers + ")"); 174_Context.Response.SetAppPathModifier(null); 305_Context.Response.Cookies.Add(new HttpCookie(s_AutoDetectName, s_AutoDetectValue)); 309_Context.Response.Redirect(redirectPath, true);
Security\FileAuthorizationModule.cs (4)
134context.Response.SetStatusCode(401, subStatus: 3); 287context.Response.Write((new FileAccessFailedErrorFormatter(context.Request.PhysicalPathInternal)).GetErrorMessage(context, false)); 289context.Response.Write((new FileAccessFailedErrorFormatter(null)).GetErrorMessage(context, true)); 293context.Response.GenerateResponseHeadersForHandler();
Security\FormsAuthentication.cs (6)
421context.Response.Cookies.RemoveCookie(FormsCookieName); 422context.Response.Cookies.Add(cookie); 425context.Response.Redirect(GetLoginPage(null), false); 456HttpContext.Current.Response.Cookies.Add(cookie); 612context.Response.Redirect(strUrl, false); 770context.Response.Redirect(loginUrl, false);
Security\FormsAuthenticationModule.cs (9)
156e.Context.Response.Redirect(e.Context.Request.RawUrl); 174e.Context.Response.Cookies.Remove(cookie.Name); 175e.Context.Response.Cookies.Add(cookie); 245if (context.Response.StatusCode != 401) 253if (context.Response.SuppressFormsAuthenticationRedirect) { 321context.Response.Redirect(strRedirect, false); 451context.Response.Redirect(strUrl); 462context.Response.Cookies.Remove(cookie.Name); 463context.Response.Cookies.Add(cookie);
Security\PassportAuthenticationModule.cs (6)
175if (context.Response.StatusCode != 401 || id.WWWAuthHeaderSet) 179context.Response.Clear(); 180context.Response.StatusCode = 200; 191context.Response.Write(strMsg); 195context.Response.Write(errorFormatter.GetAdaptiveErrorMessage(context, true)); 233context.Response.Redirect(strRedirect, false);
Security\PassportIdentity.cs (14)
82context.Response.AppendHeader("Set-Cookie", strACookie); 85context.Response.AppendHeader("Set-Cookie", strPCookie); 124context.Response.AppendHeader(strHeader, strValue); 826context.Response.StatusCode = 401; 827context.Response.End(); 835context.Response.Redirect(str, false); 974context.Response.ClearHeaders(); 1017context.Response.Cookies.Add(cookie); 1024context.Response.Expires = -1; 1025context.Response.Cache.SetCacheability(HttpCacheability.NoCache); 1026context.Response.AppendHeader("Pragma", "no-cache"); 1027context.Response.ContentType = "image/gif"; 1031context.Response.WriteFile(strSignOutDotGifFileName); 1037context.Response.Redirect(strRU, false);
Security\RoleManagerModule.cs (2)
162if (!Roles.Enabled || !Roles.CacheRolesInCookie || context.Response.HeadersWritten) 187context.Response.Cookies.Add(cookie);
Security\Roles.cs (2)
441context.Response.Cookies.RemoveCookie(CookieName); 442context.Response.Cookies.Add(cookie);
Security\UrlAuthorizationModule.cs (3)
111context.Response.StatusCode = 401; 159context.Response.Write(UrlAuthFailedErrorFormatter.GetErrorText()); 162context.Response.GenerateResponseHeadersForHandler();
State\SessionIDManager.cs (5)
284return context.Response.IsRequestBeingRedirected; 333if (context.Response.HeadersWritten) { 356context.Response.Cookies.Add(cookie); 376context.Response.Redirect(path, false); 393context.Response.Cookies.RemoveCookie(Config.CookieName);
State\SessionStateContainer.cs (2)
189return HttpContext.Current.Response.ContentEncoding.CodePage; 195HttpContext.Current.Response.ContentEncoding = Encoding.GetEncoding(value);
State\SessionStateModule.cs (1)
1397if (_rqAddedCookie && !setItemCalled && context.Response.IsBuffered()) {
State\StateRuntime.cs (9)
261context.Response.ContentType = null; 297response = context.Response; 312response = context.Response; 327response = context.Response; 332context.Response.StatusCode = 404; 413HttpResponse response = context.Response; 470context.Response.StatusCode = 200; 512HttpResponse response = context.Response; 696context.Response.StatusCode = 400;
StaticFileHandler.cs (3)
336HttpResponse response = context.Response; 480HttpResponse response = context.Response; 583context.Response.TransmitFile(physicalPath, offset, length);
UI\Control.cs (3)
2608int presize = context.Response.GetBufferedLength(); 2610int postsize = context.Response.GetBufferedLength(); 3006return Context.Response.ApplyAppPathModifier(url);
UI\HtmlForm.cs (2)
304if (cookieless && Context.Request != null && Context.Response != null) { 305action = Context.Response.ApplyAppPathModifier(action);
UI\Page.cs (1)
5567_response = context.Response;
UI\PartialCachingControl.cs (2)
367TextWriter savedWriter = Context.Response.SwitchWriter(tmpWriter); 376Context.Response.SwitchWriter(savedWriter);
UI\TraceContext.cs (5)
501row[SR.Trace_Status_Code] = _context.Response.StatusCode; 502row[SR.Trace_Response_Encoding] = _context.Response.ContentEncoding.EncodingName; 573cookies = new HttpCookie[_context.Response.Cookies.Count]; 574_context.Response.Cookies.CopyTo(cookies, 0); 799ArrayList headers = _context.Response.GenerateResponseHeaders(false);
UI\ViewStateException.cs (1)
58HttpResponse response = context != null ? context.Response : null;
UI\WebControls\AdPostCacheSubstitution.cs (1)
36context.Response.WriteSubstitution(callback);
UI\WebControls\DataListItem.cs (2)
104int presize = con.Response.GetBufferedLength(); 108int postsize = con.Response.GetBufferedLength();
UI\WebControls\SiteMapPath.cs (1)
599Context.Response.ApplyAppPathModifier(ResolveClientUrl(HttpUtility.UrlPathEncode(node.Url))) : node.Url;
Util\AspCompat.cs (32)
666return CookiesToString(_context.Response.Cookies); 670_context.Response.Cookies.Add(new HttpCookie(name)); 674_context.Response.Cookies[name].Value = text; 678_context.Response.Cookies[name].Values[key] = value; 682_context.Response.Cookies[name].Expires = DateTime.FromOADate(dtExpires); 686_context.Response.Cookies[name].Domain = domain; 690_context.Response.Cookies[name].Path = path; 694_context.Response.Cookies[name].Secure = (secure != 0); 698_context.Response.Write(text); 702_context.Response.OutputStream.Write(bytes, 0, size); 706_context.Response.Redirect(url); 710_context.Response.AppendHeader(name, value); 714_context.Response.Pics(value); 718_context.Response.Clear(); 722_context.Response.Flush(); 726_context.Response.End(); 730_context.Response.AppendToLog(entry); 734return _context.Response.ContentType; 738_context.Response.ContentType = contentType; 742return _context.Response.Charset; 746_context.Response.Charset = charSet; 750return _context.Response.CacheControl; 754_context.Response.CacheControl = cacheControl; 758return _context.Response.Status; 762_context.Response.Status = status; 766return _context.Response.Expires; 770_context.Response.Expires = expiresMinutes; 774return _context.Response.ExpiresAbsolute.ToOADate(); 778_context.Response.ExpiresAbsolute = DateTime.FromOADate(dtExpires); 782return _context.Response.BufferOutput ? 1 : 0; 786_context.Response.BufferOutput = (isBuffering != 0); 790return _context.Response.IsClientConnected ? 1 : 0;
Util\WithinCancellableCallbackTaskAwaitable.cs (1)
53context.Response.ObserveResponseEndCalled();
XmlSiteMapProvider.cs (3)
124if (context == null || !context.Response.UsePathModifier || subNodes.Count == 0) { 956if (node == null || context == null || !context.Response.UsePathModifier) { 962resultNode.Url = context.Response.ApplyAppPathModifier(node.Url);
System.Web.DataVisualization (6)
WebForm\General\ChartHttpHandler.cs (6)
268context.Response.Charset = ""; 269context.Response.ContentType = GetMime(key); 270context.Response.BinaryWrite(data); 545context.Response.Write(w.ToString()); 721context.Response.StatusCode = 404; 722context.Response.StatusDescription = SR.ExceptionHttpHandlerImageNotFound;
System.Web.Extensions (30)
Handlers\ScriptModule.cs (5)
87context.Response.ClearHeaders(); 88context.Response.Clear(); 89context.Response.Cache.SetCacheability(HttpCacheability.NoCache); 90context.Response.ContentType = "text/plain"; 97PageRequestManager.EncodeString(context.Response.Output,
Script\Services\RestClientProxyHandler.cs (2)
17context.Response.ContentType = "application/x-javascript"; 18context.Response.Write(clientProxyString);
Script\Services\RestHandler.cs (21)
65context.Response.Cache.SetCacheability(HttpCacheability.Server); 66context.Response.Cache.SetExpires(DateTime.Now.AddSeconds(cacheDuration)); 67context.Response.Cache.SetSlidingExpiration(false); 68context.Response.Cache.SetValidUntilExpires(true); 72context.Response.Cache.VaryByParams["*"] = true; 75context.Response.Cache.VaryByParams.IgnoreParams = true; 79context.Response.Cache.SetNoServerCaching(); 80context.Response.Cache.SetMaxAge(TimeSpan.Zero); 176context.Response.ContentType = contentType; 180context.Response.Write(responseString); 217string charset = context.Response.Charset; 218context.Response.ClearHeaders(); 219context.Response.ClearContent(); 220context.Response.Clear(); 221context.Response.StatusCode = statusCode; 222context.Response.StatusDescription = HttpWorkerRequest.GetStatusDescription(statusCode); 223context.Response.ContentType = "application/json"; 224context.Response.AddHeader("jsonerror", "true"); 226context.Response.Charset = charset; 230context.Response.TrySkipIisCustomErrors = true; 231using (StreamWriter writer = new StreamWriter(context.Response.OutputStream, new UTF8Encoding(false))) {
Script\Services\WebServiceClientProxyGenerator.cs (2)
46context.Response.StatusCode = 304; 57HttpCachePolicy cachePolicy = context.Response.Cache;
System.Web.Mobile (10)
Mobile\ErrorHandlerModule.cs (2)
119context.Response.Clear(); 130context.Response.Write(e2.ToString());
UI\MobileControls\Adapters\HtmlPageAdapter.cs (1)
405context.Response.ContentEncoding = Encoding.GetEncoding(preferredResponseEncoding);
UI\MobileControls\Adapters\MobileTextWriter.cs (1)
151HttpContext.Current.Response.ContentType = contentType;
UI\MobileControls\Adapters\WmlFormAdapter.cs (1)
54HttpContext.Current.Response.Cookies.Remove(formsAuthCookieName);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicFormAdapter.cs (1)
44HttpContext.Current.Response.Cookies.Remove(formsAuthCookieName);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlCssHandler.cs (2)
37context.Response.ContentType="text/css"; 47context.Response.Write (response);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlMobileTextWriter.cs (1)
811WriteAttribute ("encoding", HttpContext.Current.Response.ContentEncoding.WebName);
UI\MobileControls\MobileControl.cs (1)
393return Context.Response.ApplyAppPathModifier(url);
System.Workflow.Runtime (1)
Hosting\WorkflowWebHostingModule.cs (1)
91HttpContext.Current.Response.Cookies.Add(cookie);