Table of Contents [Hide/Show]
Lesson 1: Input Validation Common Properties Validation Controls Page Members Lesson 2: Site Navigation Client-Side Navigation Cross-Page Posting Client-Side Browser Redirect Server-Side Transfer SiteMap Files and the SiteMap Class Lesson 3: Web Parts Controls Creation Enabling User Arrangement and Editing Connecting Web Parts with Static Connections Enabling Dynamic Connections Personalization
Page.PreviousPage
FindControl
.sitemap
<siteMapNode>
SiteMap
ConnectionProvider
public partial class Provider : System.Web.UI.UserControl { string _textBoxValue = ""; [ConnectionProvider("TextBox provider", "GetTextBoxValue")] string GetTextBoxValue() { return _textBoxValue; } protected void Button1_Click(object sender, EventArgs e) { _textBoxValue = TextBoxProvider.Text; } }
ConnectionConsumer
public partial class Consumer : System.Web.UI.UserControl { [ConnectionConsumer("TextBox consumer", "ShowTextBoxValue")] void ShowTextBoxValue(string textBoxValue) { LabelConsumer.Text = textBoxValue; } }
asp:WebPartConnection
StaticConnections
<asp:WebPartManager ID="WebPartManager1" runat="server"> <StaticConnections> <asp:webPartConnection ID="conn1" ProviderID="Provider1" ProviderConnectionPointID="GetTextBoxValue" ConsumerID="Consumer1" ConsumerConnectionPointID="ShowTextBoxValue" /> </StaticConnections> </asp:WebPartManager>
Personalizable
web.config
/system.web/authorization
lt;allow verbs="enterSharedScope" users="SomeUser" roles="admin" />
WebPartManager.Personalization.Enabled
<asp:WebPartManager runat="server"> <Personalization Enabled="False" /> </asp:WebPartManager>
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.