Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Adapters / XhtmlAdapters / XhtmlCssHandler.cs / 1305376 / XhtmlCssHandler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Security.Permissions; using System.Web; using System.Web.SessionState; using System.Web.UI.MobileControls.Adapters; #if COMPILING_FOR_SHIPPED_SOURCE namespace System.Web.UI.MobileControls.ShippedAdapterSource.XhtmlAdapters #else namespace System.Web.UI.MobileControls.Adapters.XhtmlAdapters #endif { ///[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] public class XhtmlCssHandler : IHttpHandler, IRequiresSessionState { /// public void ProcessRequest (HttpContext context) { String cssQueryStringValue = (String) context.Request.QueryString[XhtmlConstants.CssQueryStringName]; String response; if (cssQueryStringValue != null) { // Recall that Page.Cache is application level if (cssQueryStringValue.StartsWith(XhtmlConstants.SessionKeyPrefix, StringComparison.Ordinal)) { response = (String) context.Session[cssQueryStringValue]; } else { response = (String) context.Cache[cssQueryStringValue]; } context.Response.ContentType="text/css"; } else { throw new HttpException (404, SR.GetString( SR.XhtmlCssHandler_IdNotPresent)); } if (response == null) { throw new HttpException (404, SR.GetString( SR.XhtmlCssHandler_StylesheetNotFound)); } context.Response.Write (response); } /// public bool IsReusable { get { return true; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InputProcessorProfilesLoader.cs
- SqlException.cs
- GlobalizationSection.cs
- InternalCompensate.cs
- HtmlInputButton.cs
- Walker.cs
- StringExpressionSet.cs
- PenThread.cs
- Figure.cs
- FrameworkContextData.cs
- SspiHelper.cs
- ReadContentAsBinaryHelper.cs
- EntityParameter.cs
- SlotInfo.cs
- ClrPerspective.cs
- SafeIUnknown.cs
- Cursor.cs
- ContractUtils.cs
- ExpressionWriter.cs
- InplaceBitmapMetadataWriter.cs
- HMACSHA1.cs
- ImageAttributes.cs
- AnnotationAuthorChangedEventArgs.cs
- TextBreakpoint.cs
- ScriptHandlerFactory.cs
- DeferredRunTextReference.cs
- WebPartVerbsEventArgs.cs
- PocoEntityKeyStrategy.cs
- ViewLoader.cs
- OrderByBuilder.cs
- WpfWebRequestHelper.cs
- ModuleBuilder.cs
- CharacterShapingProperties.cs
- OpenTypeCommon.cs
- EntityClassGenerator.cs
- BitmapPalettes.cs
- EntityTransaction.cs
- ManualResetEventSlim.cs
- PanningMessageFilter.cs
- DocumentNUp.cs
- NTAccount.cs
- AbsoluteQuery.cs
- ParallelTimeline.cs
- IPPacketInformation.cs
- MonthCalendar.cs
- XamlFxTrace.cs
- TransformationRules.cs
- WorkflowRuntime.cs
- PrtCap_Reader.cs
- XmlQueryOutput.cs
- ToggleButton.cs
- DrawingVisual.cs
- HTTPNotFoundHandler.cs
- input.cs
- UserPreferenceChangingEventArgs.cs
- FilterException.cs
- ISFClipboardData.cs
- DataError.cs
- DispatchWrapper.cs
- Size.cs
- BitmapCodecInfoInternal.cs
- PreloadHost.cs
- _AutoWebProxyScriptHelper.cs
- DatatypeImplementation.cs
- BindableTemplateBuilder.cs
- SudsParser.cs
- Model3DCollection.cs
- Axis.cs
- CheckBoxList.cs
- TableRowCollection.cs
- Utils.cs
- FlowDocument.cs
- X509KeyIdentifierClauseType.cs
- RestClientProxyHandler.cs
- BuildResult.cs
- Quack.cs
- uribuilder.cs
- WhiteSpaceTrimStringConverter.cs
- XamlReader.cs
- RayMeshGeometry3DHitTestResult.cs
- Control.cs
- ToolboxComponentsCreatedEventArgs.cs
- ScrollBarRenderer.cs
- CalendarDateChangedEventArgs.cs
- ProcessThread.cs
- DoubleAnimationUsingKeyFrames.cs
- CodeTypeMember.cs
- DataGridViewImageCell.cs
- ReadOnlyDictionary.cs
- ListViewUpdateEventArgs.cs
- SymDocumentType.cs
- LogoValidationException.cs
- KernelTypeValidation.cs
- CSharpCodeProvider.cs
- X509ScopedServiceCertificateElement.cs
- PassportAuthenticationEventArgs.cs
- CodeAttributeDeclaration.cs
- ConnectionPoint.cs
- Lease.cs
- MonitorWrapper.cs