R
rony_16
Hi,
i wrote a web custom control, that adds a search option to list box.
on of the properties are the position of the textbox that serves are
search, the position is Enum (Up, Down).
the code looks like that :
namespace SearchList
{
public Enum SearchListLoacation
{
Up,Down
}
[DefaultProperty("Text"),ToolboxData("<{0}:SearchList runat=server></
{0}:SearchList>")]
public class SearchList : WebControl,INamingContainer
{
private SearchListLocation _SearchLocation;
public SearchListLocation SearchLocation
{
get {return _SearchLocation;}
set {_SearchLocation = value;}
}
......
}
}
(HTML)
<div>
<cc1:SearchList ID="SearchList1" runat="server" AutoPostBack="True"
SearchLocation="Down" />
</div>
when i try to compile the code (custom control + website) i receive
the following msg ;
SearchList.SearchList does not contain a definition for
'SearchListLocation' .
the project is framework 2 version.
what can cause this kind of error ?
Rony,
i wrote a web custom control, that adds a search option to list box.
on of the properties are the position of the textbox that serves are
search, the position is Enum (Up, Down).
the code looks like that :
namespace SearchList
{
public Enum SearchListLoacation
{
Up,Down
}
[DefaultProperty("Text"),ToolboxData("<{0}:SearchList runat=server></
{0}:SearchList>")]
public class SearchList : WebControl,INamingContainer
{
private SearchListLocation _SearchLocation;
public SearchListLocation SearchLocation
{
get {return _SearchLocation;}
set {_SearchLocation = value;}
}
......
}
}
(HTML)
<div>
<cc1:SearchList ID="SearchList1" runat="server" AutoPostBack="True"
SearchLocation="Down" />
</div>
when i try to compile the code (custom control + website) i receive
the following msg ;
SearchList.SearchList does not contain a definition for
'SearchListLocation' .
the project is framework 2 version.
what can cause this kind of error ?
Rony,