<Prop:PropertiesEditor id="PropertiesEditor1" runat="server"
CssClass="PropertiesEditor" xControlToView=DropDownList1 />
<br>
<asp:button id="Button1" runat="server" CausesValidation="False" Text="Submit" />
<br>
Control panel for Properties Editor:
<br>
<Prop:PropertiesEditor id="PropertiesEditor2" runat="server"
CssClass="PropertiesEditor" xControlToView=PropertiesEditor1
xShowTypeColumnB="False" xHideAncestorPropsB="True" />
<br>
<asp:button id="Button2" runat="server" CausesValidation="False" Text="Submit" />
Here is the CodeBehind for this example, using C#.
private void Page_Load(object sender, System.EventArgs e)
{
Button1.Click += new System.EventHandler(Submit_Click);
Button2.Click += new System.EventHandler(SubmitCustomize_Click);
PropertiesEditor2.xLevelColors[0] = Color.AntiqueWhite;
if (!this.IsPostBack)
{
PropertiesEditor2.DataBind();
PropertiesEditor1.DataBind();
}
} // Page_Load
protected void Submit_Click(object sender, System.EventArgs e)
{
PropertiesEditor1.UpdateInstance();
} // Submit_Click
protected void SubmitCustomize_Click(object sender, System.EventArgs e)
{
PropertiesEditor2.UpdateInstance();
PropertiesEditor1.DataBind();
} // Submit_Click
|
Product
| PropertiesEditor |
|
Version
| 1.0 (Current release: 1.0.2) |
|
Price
| Free |
|
Restricted Usage
| Unrestricted. A donation to the .Net development community. However, it is distributed "AS IS". |
|
Source Code
| Included |
|
Language
| C# |
|
Compatibility
| Microsoft .Net 1.0 and 1.1 |
|
Installation
| You will download a Zip file named PropertiesEditor.zip. Extract its contents. It will place all files into a folder named PropertiesEditor. |
|
Documentation
| Once installed, read the file Documentation.rtf in WordPad or a word processor for instructions on how to compile the control and connect it to your ASP.NET web application. The source code is also documented. |