Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Image.cs / 1305376 / Image.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Drawing; using System.Drawing.Design; using System.Web; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.Design.WebControls; using System.Security.Permissions; namespace System.Web.UI.MobileControls { /* * Mobile Image class. * * Copyright (c) 2000 Microsoft Corporation */ ///[ DefaultProperty("ImageUrl"), Designer(typeof(System.Web.UI.Design.MobileControls.ImageDesigner)), DesignerAdapter(typeof(System.Web.UI.Design.MobileControls.Adapters.DesignerImageAdapter)), ToolboxData("<{0}:Image runat=\"server\">{0}:Image>"), ToolboxItem(typeof(System.Web.UI.Design.WebControlToolboxItem)) ] [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 Image : MobileControl, IPostBackEventHandler { // used for linking between panels /// protected void RaisePostBackEvent(String argument) { MobilePage.ActiveForm = MobilePage.GetForm(argument); } /// [ Bindable(true), DefaultValue(""), MobileCategory(SR.Category_Appearance), MobileSysDescription(SR.Image_AlternateText) ] public String AlternateText { get { return ToString(ViewState["AlternateText"]); } set { ViewState["AlternateText"] = value; } } /// [ Bindable(true), DefaultValue(""), Editor(typeof(System.Web.UI.Design.MobileControls.ImageUrlEditor), typeof(UITypeEditor)), MobileCategory(SR.Category_Appearance), MobileSysDescription(SR.Image_ImageUrl) ] public String ImageUrl { get { return ToString(ViewState["ImageUrl"]); } set { ViewState["ImageUrl"] = value; } } /// [ Bindable(true), DefaultValue(""), MobileCategory(SR.Category_Navigation), MobileSysDescription(SR.Image_NavigateUrl), TypeConverter(typeof(System.Web.UI.Design.MobileControls.Converters.NavigateUrlConverter)) ] public String NavigateUrl { get { return ToString(ViewState["NavigateUrl"]); } set { ViewState["NavigateUrl"] = value; } } /// [ Bindable(true), DefaultValue(""), MobileCategory(SR.Category_Behavior), MobileSysDescription(SR.Image_SoftkeyLabel) ] public String SoftkeyLabel { get { String s = (String) ViewState["Softkeylabel"]; return((s != null) ? s : String.Empty); } set { ViewState["Softkeylabel"] = value; } } #region IPostBackEventHandler implementation void IPostBackEventHandler.RaisePostBackEvent(String eventArgument) { RaisePostBackEvent(eventArgument); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Drawing; using System.Drawing.Design; using System.Web; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.Design.WebControls; using System.Security.Permissions; namespace System.Web.UI.MobileControls { /* * Mobile Image class. * * Copyright (c) 2000 Microsoft Corporation */ ///[ DefaultProperty("ImageUrl"), Designer(typeof(System.Web.UI.Design.MobileControls.ImageDesigner)), DesignerAdapter(typeof(System.Web.UI.Design.MobileControls.Adapters.DesignerImageAdapter)), ToolboxData("<{0}:Image runat=\"server\">{0}:Image>"), ToolboxItem(typeof(System.Web.UI.Design.WebControlToolboxItem)) ] [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 Image : MobileControl, IPostBackEventHandler { // used for linking between panels /// protected void RaisePostBackEvent(String argument) { MobilePage.ActiveForm = MobilePage.GetForm(argument); } /// [ Bindable(true), DefaultValue(""), MobileCategory(SR.Category_Appearance), MobileSysDescription(SR.Image_AlternateText) ] public String AlternateText { get { return ToString(ViewState["AlternateText"]); } set { ViewState["AlternateText"] = value; } } /// [ Bindable(true), DefaultValue(""), Editor(typeof(System.Web.UI.Design.MobileControls.ImageUrlEditor), typeof(UITypeEditor)), MobileCategory(SR.Category_Appearance), MobileSysDescription(SR.Image_ImageUrl) ] public String ImageUrl { get { return ToString(ViewState["ImageUrl"]); } set { ViewState["ImageUrl"] = value; } } /// [ Bindable(true), DefaultValue(""), MobileCategory(SR.Category_Navigation), MobileSysDescription(SR.Image_NavigateUrl), TypeConverter(typeof(System.Web.UI.Design.MobileControls.Converters.NavigateUrlConverter)) ] public String NavigateUrl { get { return ToString(ViewState["NavigateUrl"]); } set { ViewState["NavigateUrl"] = value; } } /// [ Bindable(true), DefaultValue(""), MobileCategory(SR.Category_Behavior), MobileSysDescription(SR.Image_SoftkeyLabel) ] public String SoftkeyLabel { get { String s = (String) ViewState["Softkeylabel"]; return((s != null) ? s : String.Empty); } set { ViewState["Softkeylabel"] = value; } } #region IPostBackEventHandler implementation void IPostBackEventHandler.RaisePostBackEvent(String eventArgument) { RaisePostBackEvent(eventArgument); } #endregion } } // 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
- AnimationLayer.cs
- SynchronizationLockException.cs
- XamlParser.cs
- WorkflowServiceHostFactory.cs
- XPathNavigatorReader.cs
- Blend.cs
- XmlDocumentSurrogate.cs
- NameObjectCollectionBase.cs
- ErrorWebPart.cs
- AnnotationService.cs
- SiteMapProvider.cs
- SqlServer2KCompatibilityAnnotation.cs
- OleDbPermission.cs
- EntityContainerEmitter.cs
- SafeLibraryHandle.cs
- ResizeGrip.cs
- TailPinnedEventArgs.cs
- ConsoleEntryPoint.cs
- ProcessHostConfigUtils.cs
- ProtocolsConfigurationHandler.cs
- Comparer.cs
- ImmutableAssemblyCacheEntry.cs
- OleDbParameter.cs
- SqlInternalConnectionTds.cs
- LogicalExpr.cs
- EntityParameterCollection.cs
- SchemaElementDecl.cs
- NameObjectCollectionBase.cs
- _Win32.cs
- DesignerDataView.cs
- HijriCalendar.cs
- CodeTypeParameter.cs
- DiagnosticTraceSource.cs
- XmlChildNodes.cs
- WindowsNonControl.cs
- PersonalizableTypeEntry.cs
- LocalFileSettingsProvider.cs
- SqlCommand.cs
- DrawListViewColumnHeaderEventArgs.cs
- SqlTopReducer.cs
- SystemColorTracker.cs
- HtmlInputSubmit.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- XmlQualifiedNameTest.cs
- ToolStripScrollButton.cs
- FacetChecker.cs
- FileDialogPermission.cs
- PersonalizableAttribute.cs
- EpmSyndicationContentSerializer.cs
- XmlWrappingReader.cs
- TraceRecord.cs
- DataGridCaption.cs
- CqlLexerHelpers.cs
- DataSourceProvider.cs
- PointConverter.cs
- ConfigurationElementProperty.cs
- ProtocolsConfigurationEntry.cs
- SystemMulticastIPAddressInformation.cs
- RoleGroupCollectionEditor.cs
- FormatConvertedBitmap.cs
- XmlSchemaSequence.cs
- DataFormats.cs
- WindowPatternIdentifiers.cs
- CatalogPart.cs
- Activity.cs
- Transactions.cs
- Pts.cs
- DataStreamFromComStream.cs
- HttpFileCollectionWrapper.cs
- MergablePropertyAttribute.cs
- SchemaComplexType.cs
- SequentialWorkflowHeaderFooter.cs
- BoundPropertyEntry.cs
- ReturnValue.cs
- GroupLabel.cs
- BooleanStorage.cs
- TimerExtension.cs
- X509SecurityToken.cs
- ParameterBinding.cs
- RadioButton.cs
- EventLogStatus.cs
- StackSpiller.Bindings.cs
- ExpressionBindingCollection.cs
- PrivateFontCollection.cs
- HashHelper.cs
- InternalConfigRoot.cs
- ManagementEventArgs.cs
- WindowsButton.cs
- SqlCacheDependencyDatabaseCollection.cs
- DTCTransactionManager.cs
- EtwTrackingBehaviorElement.cs
- MemoryMappedViewStream.cs
- BitmapCache.cs
- PeerName.cs
- PropertySourceInfo.cs
- DbTransaction.cs
- ClassHandlersStore.cs
- selecteditemcollection.cs
- TypeUsageBuilder.cs
- ListViewCancelEventArgs.cs