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 SearchListLoaca tion
{
Up,Down
}
[DefaultProperty ("Text"),Toolbo xData("<{0}:Sea rchList runat=server></
{0}:SearchList> ")]
public class SearchList : WebControl,INam ingContainer
{
private SearchListLocat ion _SearchLocation ;
public SearchListLocat ion SearchLocation
{
get {return _SearchLocation ;}
set {_SearchLocatio n = value;}
}
......
}
}
(HTML)
<div>
<cc1:SearchLi st ID="SearchList1 " runat="server" AutoPostBack="T rue"
SearchLocation= "Down" />
</div>
when i try to compile the code (custom control + website) i receive
the following msg ;
SearchList.Sear chList does not contain a definition for
'SearchListLoca tion' .
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 SearchListLoaca tion
{
Up,Down
}
[DefaultProperty ("Text"),Toolbo xData("<{0}:Sea rchList runat=server></
{0}:SearchList> ")]
public class SearchList : WebControl,INam ingContainer
{
private SearchListLocat ion _SearchLocation ;
public SearchListLocat ion SearchLocation
{
get {return _SearchLocation ;}
set {_SearchLocatio n = value;}
}
......
}
}
(HTML)
<div>
<cc1:SearchLi st ID="SearchList1 " runat="server" AutoPostBack="T rue"
SearchLocation= "Down" />
</div>
when i try to compile the code (custom control + website) i receive
the following msg ;
SearchList.Sear chList does not contain a definition for
'SearchListLoca tion' .
the project is framework 2 version.
what can cause this kind of error ?
Rony,
Comment