G
Guest
Hi
I'm trying to have a drop down list inside a repeater
where the data for the list is extracted from a database
along with other items but I can't seem to get it to work
for the list.
My html is as follows:
<aspanel id="Panel1" style="Z-INDEX: 104; LEFT: 240px;
POSITION: absolute; TOP: 184px" runat="server"
Height="386px" Width="594px">
<asp:Repeater id="TaskRepeater" runat="server">
<HeaderTemplate>
<table border="0" width="594">
<tr>
<td align="left">Task</td>
<td align="left">Project</td>
<td align="left">Language</td>
<td align="center">Progress</td>
<td align="left">Wordcount</td>
<td align="left">Assignee</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td width="150">
<%# DataBinder.Eval(Container.DataItem,"TASK_NAME") %>
</td>
<td width="150">
<%# DataBinder.Eval(Container.DataItem,"PROJECT_NAME") %>
</td>
<td width="150">
<aspropDownList id="LanguageDropDownList"
DataTextField="LANG_NAME"
style="Z-INDEX: 101; LEFT: 205px; POSITION: absolute; TOP:
30px"
runat="server" Height="18px"
Width="74px"></aspropDownList>
What's happening is that I get TASK_NAME,PROJECT_NAME out
ok (although they are repeated for each LANG_NAME) but I
cannot get anything for LANG_NAME. I know that LANG_NAME
is being extracted correctly from the database since if I
exchange PROJECT_NAME for LANG_NAME in the code above then
I get the languages ok.
I can't find much info./samples on this type of thing -
can anyone help?
Thanks in advance.
I'm trying to have a drop down list inside a repeater
where the data for the list is extracted from a database
along with other items but I can't seem to get it to work
for the list.
My html is as follows:
<aspanel id="Panel1" style="Z-INDEX: 104; LEFT: 240px;
POSITION: absolute; TOP: 184px" runat="server"
Height="386px" Width="594px">
<asp:Repeater id="TaskRepeater" runat="server">
<HeaderTemplate>
<table border="0" width="594">
<tr>
<td align="left">Task</td>
<td align="left">Project</td>
<td align="left">Language</td>
<td align="center">Progress</td>
<td align="left">Wordcount</td>
<td align="left">Assignee</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td width="150">
<%# DataBinder.Eval(Container.DataItem,"TASK_NAME") %>
</td>
<td width="150">
<%# DataBinder.Eval(Container.DataItem,"PROJECT_NAME") %>
</td>
<td width="150">
<aspropDownList id="LanguageDropDownList"
DataTextField="LANG_NAME"
style="Z-INDEX: 101; LEFT: 205px; POSITION: absolute; TOP:
30px"
runat="server" Height="18px"
Width="74px"></aspropDownList>
What's happening is that I get TASK_NAME,PROJECT_NAME out
ok (although they are repeated for each LANG_NAME) but I
cannot get anything for LANG_NAME. I know that LANG_NAME
is being extracted correctly from the database since if I
exchange PROJECT_NAME for LANG_NAME in the code above then
I get the languages ok.
I can't find much info./samples on this type of thing -
can anyone help?
Thanks in advance.