History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-25104
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Sergey Coox
Reporter: Sergey Coox
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

custom control items collection

Created: 06 Aug 06 17:20   Updated: 09 Sep 06 13:33
Component/s: Language - ASP.NET
Fix Version/s: 2.0.1
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Fixed in build: 256
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=25104


 Description  « Hide
<%@ Register Namespace="Retail.UI.Web.Controls" TagPrefix="retail" %>
...
<retail:Options ID="opt" runat="server">
<retail:Option Text="?????1">
</retail:Option>
<retail:Option Text="?????2">
</retail:Option>
</retail:Options>
...

---- class with control -------------------------------------------
using System.Collections.Generic;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Retail.UI.Web.Controls
{
[ToolboxData("<{0}:Options runat=server></{0}:Options>")]
[DefaultProperty("Items")]
[ParseChildren(true, "Items")]
public class Options : WebControl
{
private List<Option> _list;

public Options()

{ _list = new List<Option>(); this.EnableViewState = false; }

[PersistenceMode(PersistenceMode.InnerDefaultProperty)]
[Themeable(false)]
public List<Option> Items
{
get { return _list; }
}

protected override void RenderContents(HtmlTextWriter writer)

{ // ... }

}

[ParseChildren(false)]
[PersistChildren(false)]
public class Option
{
private string _text;

public Option()
{
}

public string Text
{
get { return _text; }
set { _text = value; }
}
}

}



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.