|
Il presente articolo è stato tradotto manualmente. Passare il puntatore sulle frasi nell'articolo per visualizzare il testo originale.
|
Traduzione
Originale
|
Classe GenericWebPart
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
System.Web.UI.WebControls.Panel
System.Web.UI.WebControls.WebParts.Part
System.Web.UI.WebControls.WebParts.WebPart
System.Web.UI.WebControls.WebParts.GenericWebPart
Assembly: System.Web (in System.Web.dll)
Il tipo GenericWebPart espone i seguenti membri.
| Nome | Descrizione | |
|---|---|---|
![]() | GenericWebPart |
| Nome | Descrizione | |
|---|---|---|
![]() | AccessKey | |
![]() | Adapter | |
![]() | AllowClose | |
![]() | AllowConnect | |
![]() | AllowEdit | |
![]() | AllowHide | |
![]() | AllowMinimize | |
![]() | AllowZoneChange | |
![]() | AppRelativeTemplateSourceDirectory | |
![]() | Attributes | |
![]() | AuthorizationFilter | |
![]() | BackColor | |
![]() | BackImageUrl | |
![]() | BindingContainer | Infrastruttura. |
![]() | BorderColor | |
![]() | BorderStyle | |
![]() | BorderWidth | |
![]() | CatalogIconImageUrl | |
![]() | ChildControl | |
![]() | ChildControlsCreated | |
![]() | ChromeState | |
![]() | ChromeType | |
![]() | ClientID | |
![]() | ClientIDMode | |
![]() | ClientIDSeparator | |
![]() | ConnectErrorMessage | |
![]() | Context | |
![]() | Controls | Infrastruttura. |
![]() | ControlStyle | |
![]() | ControlStyleCreated | |
![]() | CssClass | |
![]() | DataItemContainer | |
![]() | DataKeysContainer | |
![]() | DefaultButton | |
![]() | Description | |
![]() | DesignMode | |
![]() | Direction | |
![]() | DisplayTitle | |
![]() | Enabled | |
![]() | EnableTheming | |
![]() | EnableViewState | |
![]() | Events | |
![]() | ExportMode | |
![]() | Font | |
![]() | ForeColor | |
![]() | GroupingText | |
![]() | HasAttributes | |
![]() | HasChildViewState | |
![]() | HasSharedData | |
![]() | HasUserData | |
![]() | Height | |
![]() | HelpMode | |
![]() | HelpUrl | |
![]() | Hidden | |
![]() | HorizontalAlign | |
![]() | ID | |
![]() | IdSeparator | Infrastruttura. |
![]() | ImportErrorMessage | |
![]() | IsChildControlStateCleared | |
![]() | IsClosed | |
![]() | IsEnabled | |
![]() | IsShared | |
![]() | IsStandalone | |
![]() | IsStatic | |
![]() | IsTrackingViewState | |
![]() | IsViewStateEnabled | |
![]() | LoadViewStateByID | |
![]() | NamingContainer | |
![]() | Page | |
![]() | Parent | |
![]() | RenderingCompatibility | |
![]() | ScrollBars | |
![]() | Site | |
![]() | SkinID | |
![]() | Style | |
![]() | Subtitle | |
![]() | SupportsDisabledAttribute | |
![]() | TabIndex | |
![]() | TagKey | |
![]() | TagName | |
![]() | TemplateControl | |
![]() | TemplateSourceDirectory | |
![]() | Title | |
![]() | TitleIconImageUrl | |
![]() | TitleUrl | |
![]() | ToolTip | |
![]() | UniqueID | |
![]() | Verbs | |
![]() | ViewState | |
![]() | ViewStateIgnoresCase | |
![]() | ViewStateMode | |
![]() | Visible | |
![]() | WebBrowsableObject | |
![]() | WebPartManager | |
![]() | Width | |
![]() | Wrap | |
![]() | Zone | |
![]() | ZoneIndex |
| Nome | Descrizione | |
|---|---|---|
![]() | AddAttributesToRender | |
![]() | AddedControl | |
![]() | AddParsedSubObject | |
![]() | ApplyStyle | |
![]() | ApplyStyleSheetSkin | |
![]() | BuildProfileTree | Infrastruttura. |
![]() | ClearCachedClientID | Infrastruttura. |
![]() | ClearChildControlState | |
![]() | ClearChildState | |
![]() | ClearChildViewState | |
![]() | ClearEffectiveClientIDMode | Infrastruttura. |
![]() | CopyBaseAttributes | |
![]() | CreateChildControls | |
![]() | CreateControlCollection | |
![]() | CreateControlStyle | |
![]() | CreateEditorParts | |
![]() | DataBind() | |
![]() | DataBind(Boolean) | |
![]() | DataBindChildren | |
![]() | Dispose | |
![]() | EnsureChildControls | |
![]() | EnsureID | |
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | FindControl(String) | |
![]() | FindControl(String, Int32) | Infrastruttura. |
![]() | Focus | |
![]() | GetDesignModeState | Infrastruttura. |
![]() | GetHashCode | |
![]() | GetRouteUrl(Object) | |
![]() | GetRouteUrl(RouteValueDictionary) | |
![]() | GetRouteUrl(String, Object) | |
![]() | GetRouteUrl(String, RouteValueDictionary) | |
![]() | GetType | |
![]() | GetUniqueIDRelativeTo | |
![]() | HasControls | |
![]() | HasEvents | |
![]() | IsLiteralContent | Infrastruttura. |
![]() | LoadControlState | |
![]() | LoadViewState | |
![]() | MapPathSecure | |
![]() | MemberwiseClone | |
![]() | MergeStyle | |
![]() | OnBubbleEvent | |
![]() | OnClosing | |
![]() | OnConnectModeChanged | |
![]() | OnDataBinding | |
![]() | OnDeleting | |
![]() | OnEditModeChanged | |
![]() | OnInit | |
![]() | OnLoad | |
![]() | OnPreRender | |
![]() | OnUnload | |
![]() | OpenFile | |
![]() | RaiseBubbleEvent | |
![]() | RemovedControl | |
![]() | Render | |
![]() | RenderBeginTag | |
![]() | RenderChildren | |
![]() | RenderContents | |
![]() | RenderControl(HtmlTextWriter) | |
![]() | RenderControl(HtmlTextWriter, ControlAdapter) | |
![]() | RenderEndTag | |
![]() | ResolveAdapter | |
![]() | ResolveClientUrl | |
![]() | ResolveUrl | |
![]() | SaveControlState | |
![]() | SaveViewState | |
![]() | SetDesignModeState | |
![]() | SetPersonalizationDirty() | |
![]() | SetRenderMethodDelegate | Infrastruttura. |
![]() | ToString | |
![]() | TrackViewState |
| Nome | Descrizione | |
|---|---|---|
![]() | DataBinding | |
![]() | Disposed | |
![]() | Init | |
![]() | Load | |
![]() | PreRender | |
![]() | Unload |
| Nome | Descrizione | |
|---|---|---|
![]() | FindDataSourceControl | |
![]() | FindFieldTemplate | |
![]() | FindMetaTable |
| Nome | Descrizione | |
|---|---|---|
![]() ![]() | IAttributeAccessor.GetAttribute | Infrastruttura. |
![]() ![]() | IAttributeAccessor.SetAttribute | |
![]() ![]() | ICompositeControlDesignerAccessor.RecreateChildControls | |
![]() ![]() | IControlBuilderAccessor.ControlBuilder | |
![]() ![]() | IControlDesignerAccessor.GetDesignModeState | |
![]() ![]() | IControlDesignerAccessor.SetDesignModeState | |
![]() ![]() | IControlDesignerAccessor.SetOwnerControl | Infrastruttura. |
![]() ![]() | IControlDesignerAccessor.UserData | |
![]() ![]() | IDataBindingsAccessor.DataBindings | |
![]() ![]() | IDataBindingsAccessor.HasDataBindings | |
![]() ![]() | IExpressionsAccessor.Expressions | |
![]() ![]() | IExpressionsAccessor.HasExpressions | |
![]() ![]() | IParserAccessor.AddParsedSubObject |
Nota |
|---|
| Topic | Location |
|---|---|
| Procedura: considerare un controllo utente come controllo Web part | Generazione di applicazioni Web ASP.NET |
| Procedura: esportare impostazioni di controlli Web part | Generazione di applicazioni Web ASP.NET |
| Procedura: esportare impostazioni di controlli Web part | Compilazione di applicazioni Web ASP.NET in Visual Studio |
| Procedura: considerare un controllo utente come controllo Web part | Compilazione di applicazioni Web ASP.NET in Visual Studio |
<%@ Page Language="C#" Codefile="genericwebpart.cs" Inherits="genericwebpart_sample" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>GenericWebPart Example</title> </head> <body> <form id="form1" runat="server"> <asp:WebPartManager ID="WebPartManager1" runat="server"> </asp:WebPartManager> <asp:WebPartZone ID="WebPartZone1" runat="server"> <ZoneTemplate> <asp:Calendar ID="Calendar1" runat="server" Title="My Calendar" Description="A calendar used as a GenericWebPart control." CatalogIconImageUrl="MyCatalogIcon.gif" TitleIconimageUrl ="MyTitleIcon.gif" TitleUrl="MyInfoUrl.htm" Width="250"/> </ZoneTemplate> </asp:WebPartZone> <asp:WebPartZone ID="WebPartZone2" runat="server"> <ZoneTemplate> <asp:BulletedList ID="BulletedList1" Runat="server" DisplayMode="HyperLink"> <asp:ListItem Value="http://msdn.microsoft.com"> MSDN </asp:ListItem> <asp:ListItem Value="http://www.asp.net"> ASP.NET </asp:ListItem> <asp:ListItem Value="http://www.msn.com"> MSN </asp:ListItem> </asp:BulletedList> </ZoneTemplate> </asp:WebPartZone> <hr /> <asp:Button ID="Button1" width="200" runat="server" Text="Display All Property Values" OnClick="Button1_Click" /> <br /> <asp:Label ID="Label2" runat="server" Text="" /> <br /> <asp:Label ID="Label3" runat="server" Text="" /> </form> </body> </html>
using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class genericwebpart_sample : System.Web.UI.Page { GenericWebPart calendarPart; GenericWebPart listPart; protected void Page_Load(Object sender, EventArgs e) { calendarPart = WebPartManager1.GetGenericWebPart(Calendar1); listPart = WebPartManager1.GetGenericWebPart(BulletedList1); if (!IsPostBack) { Label2.Text = String.Empty; Label3.Text = String.Empty; } } protected void Button1_Click(object sender, EventArgs e) { Label2.Text = @"<h3>Calendar GenericWebPart Properties</h3>" + "<em>Title: </em>" + calendarPart.Title + "<br />" + "<em>CatalogIconImageUrl: </em>" + calendarPart.CatalogIconImageUrl + "<br />" + "<em>TitleUrl: </em>" + calendarPart.TitleUrl + "<br />" + "<em>Decription: </em>" + calendarPart.Description + "<br />" + "<em>TitleIconImageUrl: </em>" + calendarPart.TitleIconImageUrl + "<br />" + "<em>ChildControl ID: </em>" + calendarPart.ChildControl.ID + "<br />" + "<em>ChildControl Type: </em>" + calendarPart.ChildControl.GetType().Name + "<br />" + "<em>GenericWebPart ID: </em>" + calendarPart.ID + "<br />" + "<em>GenericWebPart Type: </em>" + calendarPart.GetType().Name + "<br />" + "<em>GenericWebPart Parent ID: </em>" + calendarPart.Parent.ID; Label3.Text = @"<h3>BulletedList GenericWebPart Properties</h3>" + "<em>Title: </em>" + listPart.Title + "<br />" + "<em>CatalogIconImageUrl: </em>" + listPart.CatalogIconImageUrl + "<br />" + "<em>TitleUrl: </em>" + listPart.TitleUrl + "<br />" + "<em>Decription: </em>" + listPart.Description + "<br />" + "<em>TitleIconImageUrl: </em>" + listPart.TitleIconImageUrl + "<br />" + "<em>ChildControl ID: </em>" + listPart.ChildControl.ID + "<br />" + "<em>ChildControl Type: </em>" + listPart.ChildControl.GetType().Name + "<br />" + "<em>GenericWebPart ID: </em>" + listPart.ID + "<br />" + "<em>GenericWebPart Type: </em>" + listPart.GetType().Name + "<br />" + "<em>GenericWebPart Parent ID: </em>" + listPart.Parent.ID; } }
Windows 7, Windows Vista SP1 o versione successiva, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (componenti di base del server non supportati), Windows Server 2008 R2 (componenti di base del server supportati con SP1 o versione successiva), Windows Server 2003 SP2
.NET Framework non supporta tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.

