Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / ErrorFormatterPage.cs / 1 / ErrorFormatterPage.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * This is a page class that is used for adaptive error formatting for mobile * devices. * * NOTE: We explicitly override the state management methods because if the * normal page class is used, an exception is thrown for mobile devices. * For example, WmlPageAdapter uses SessionPageStatePersister * for persisting view state. SessionPageStatePersister requires * Context.Session to be available. Otherwise, it would throw in the * constructor. However, when an error occurred, Context.Session is * removed by SessionStateModule before the error is being formatted and * rendered. Hence the methods are overridden below and ignored to avoid * the exception since there is no need to persist any view state for the * adaptive error page which is created dynamically during error handling. * * Copyright (c) 2003 Microsoft Corporation */ namespace System.Web.UI { internal sealed class ErrorFormatterPage: Page { protected internal override void SavePageStateToPersistenceMedium(Object viewState) { // Override and ignore. No need to save view state for this page. } protected internal override Object LoadPageStateFromPersistenceMedium() { // Override and ignore. No view state to load for this page. return null; } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- mediaeventshelper.cs
- CustomErrorsSectionWrapper.cs
- UIElementParaClient.cs
- ReadWriteSpinLock.cs
- DataGridCommandEventArgs.cs
- DataProviderNameConverter.cs
- XPathAxisIterator.cs
- DataDocumentXPathNavigator.cs
- relpropertyhelper.cs
- InkSerializer.cs
- IODescriptionAttribute.cs
- UnsafePeerToPeerMethods.cs
- FileIOPermission.cs
- filewebresponse.cs
- WebPageTraceListener.cs
- ModuleConfigurationInfo.cs
- LocatorPartList.cs
- SQLInt64.cs
- ChangePassword.cs
- AutomationPropertyInfo.cs
- ParameterCollectionEditorForm.cs
- RuleInfoComparer.cs
- DynamicPhysicalDiscoSearcher.cs
- Asn1IntegerConverter.cs
- RadioButtonStandardAdapter.cs
- UriTemplateTrieLocation.cs
- FixedLineResult.cs
- Image.cs
- GiveFeedbackEventArgs.cs
- ImpersonateTokenRef.cs
- StatusStrip.cs
- WorkerRequest.cs
- DataSourceConverter.cs
- ColumnClickEvent.cs
- Rotation3DKeyFrameCollection.cs
- SuppressIldasmAttribute.cs
- OletxTransactionHeader.cs
- documentsequencetextcontainer.cs
- LabelTarget.cs
- ExtensionWindowHeader.cs
- BindingGraph.cs
- ErasingStroke.cs
- ReferenceConverter.cs
- IconEditor.cs
- XmlWrappingWriter.cs
- IMembershipProvider.cs
- Base64WriteStateInfo.cs
- ReverseComparer.cs
- EncodingTable.cs
- SchemaNotation.cs
- AssemblyFilter.cs
- DependencyProperty.cs
- GeometryValueSerializer.cs
- Registry.cs
- versioninfo.cs
- ADRoleFactory.cs
- KeyConverter.cs
- uribuilder.cs
- ListCollectionView.cs
- HTMLTextWriter.cs
- AppDomainFactory.cs
- Label.cs
- NumberFormatInfo.cs
- ConstraintConverter.cs
- TextTreeDeleteContentUndoUnit.cs
- BaseCollection.cs
- ITreeGenerator.cs
- FixUp.cs
- SiblingIterators.cs
- SimpleMailWebEventProvider.cs
- SqlConnectionFactory.cs
- AxisAngleRotation3D.cs
- EntitySetBaseCollection.cs
- VisualStyleElement.cs
- DataException.cs
- XmlMembersMapping.cs
- ContextQuery.cs
- EntitySetDataBindingList.cs
- BitmapDecoder.cs
- PiiTraceSource.cs
- OdbcUtils.cs
- DesignerHost.cs
- ComponentDispatcherThread.cs
- AmbientLight.cs
- MetaTable.cs
- PageBuildProvider.cs
- TreeWalker.cs
- Ppl.cs
- SelectionRangeConverter.cs
- HScrollProperties.cs
- BypassElement.cs
- ParallelLoopState.cs
- DesignerLoader.cs
- DbDeleteCommandTree.cs
- PolyLineSegment.cs
- AmbientLight.cs
- ControlDesigner.cs
- AssemblyAssociatedContentFileAttribute.cs
- CustomErrorsSection.cs
- Geometry3D.cs