Code:
/ DotNET / DotNET / 8.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
- Drawing.cs
- QilScopedVisitor.cs
- UserControlParser.cs
- SafeBitVector32.cs
- Span.cs
- basemetadatamappingvisitor.cs
- FilterElement.cs
- DoubleAnimationBase.cs
- SystemFonts.cs
- XmlSecureResolver.cs
- PropertyValueUIItem.cs
- RuntimeHelpers.cs
- SoapObjectReader.cs
- ClientRoleProvider.cs
- WebPartEditorCancelVerb.cs
- SQLBinaryStorage.cs
- TreeNodeBindingCollection.cs
- FilterQuery.cs
- EntitySqlQueryBuilder.cs
- StringUtil.cs
- ConstraintEnumerator.cs
- RepeaterCommandEventArgs.cs
- HtmlWindow.cs
- IPipelineRuntime.cs
- TextShapeableCharacters.cs
- InstanceView.cs
- DataGridViewColumnHeaderCell.cs
- TextEncodedRawTextWriter.cs
- EventLogEntry.cs
- ReservationCollection.cs
- ScriptManagerProxy.cs
- InternalCompensate.cs
- CharacterMetrics.cs
- NamespaceQuery.cs
- SecurityTokenRequirement.cs
- WhitespaceRuleReader.cs
- AssemblyCollection.cs
- ValidationRuleCollection.cs
- NetMsmqSecurityMode.cs
- IntegrationExceptionEventArgs.cs
- SafeWaitHandle.cs
- ChannelAcceptor.cs
- EventTask.cs
- ProfileService.cs
- CodeAttributeDeclarationCollection.cs
- XsdDuration.cs
- WindowsPen.cs
- FastEncoder.cs
- BidirectionalDictionary.cs
- NullableIntSumAggregationOperator.cs
- ToolStripItemTextRenderEventArgs.cs
- EntityCommandDefinition.cs
- InputLanguageManager.cs
- XamlInterfaces.cs
- SafeNativeMethods.cs
- PrimaryKeyTypeConverter.cs
- Keywords.cs
- HeaderedItemsControl.cs
- _FixedSizeReader.cs
- ApplicationBuildProvider.cs
- ObjectDataSourceWizardForm.cs
- NodeInfo.cs
- ConfigurationSchemaErrors.cs
- MediaScriptCommandRoutedEventArgs.cs
- DiscoveryExceptionDictionary.cs
- CacheEntry.cs
- SoundPlayerAction.cs
- WinInet.cs
- DictionaryContent.cs
- NumberAction.cs
- ConfigurationSectionCollection.cs
- Int32AnimationUsingKeyFrames.cs
- DbConnectionStringCommon.cs
- AjaxFrameworkAssemblyAttribute.cs
- ColorPalette.cs
- DesignerOptionService.cs
- SiteMapProvider.cs
- AnonymousIdentificationSection.cs
- KnownIds.cs
- SiteMapNodeItem.cs
- HttpResponseBase.cs
- ClientUtils.cs
- SafeProcessHandle.cs
- IntSecurity.cs
- DiagnosticTraceSchemas.cs
- SQLInt64Storage.cs
- MessageDecoder.cs
- safex509handles.cs
- translator.cs
- HeaderCollection.cs
- Events.cs
- EnumerableRowCollection.cs
- Privilege.cs
- OpenTypeCommon.cs
- SQLByteStorage.cs
- _Rfc2616CacheValidators.cs
- LinkLabel.cs
- CompositeScriptReference.cs
- UrlMappingsModule.cs
- FuncTypeConverter.cs