摘要:
Adding Custom Properties to Visual Web PartsOpen the web part code file:Add the following code to the web part file:privatestring propertyName = "Default Value";[System.Web.UI.WebControls.WebParts.WebBrowsable(true),System.Web.UI.WebControls.WebParts.WebDisplayName("Property Name" 阅读全文