R
R.A.M.
Hello,
I need your help in a problem of putting and accessing asp control in
FooterTemplate of asp
ataList. I created a DataList:
<asp
ataList ID="BooksList" runat="server"
OnEditCommand="BooksiList_Edit"
OnUpdateCommand="BooksiList_Update"
OnDeleteCommand="BooksList_Delete">
....
<FooterTemplate>
</tbody>
<tfoot>
<tr align="justify">
<td>
<asp:LinkButton ID="BooksListAdd" runat="server"
Text="Add" CommandName="Add"
OnCommand="BooksList_Add" />
</td>
</tr>
</tfoot>
</table>
</FooterTemplate>
</asp
ataList>
I want to use LinkButton in hander function:
protected void BooksList_Add(object sender, DataListCommandEventArgs
e)
{
...
BooksListAdd.Visible = false;
}
but I receive an error: "The name 'BooksListAdd' does not exist in the
current context."
How to write it correctly?
Thank you very much for your help.
/RAM/
I need your help in a problem of putting and accessing asp control in
FooterTemplate of asp
<asp
OnEditCommand="BooksiList_Edit"
OnUpdateCommand="BooksiList_Update"
OnDeleteCommand="BooksList_Delete">
....
<FooterTemplate>
</tbody>
<tfoot>
<tr align="justify">
<td>
<asp:LinkButton ID="BooksListAdd" runat="server"
Text="Add" CommandName="Add"
OnCommand="BooksList_Add" />
</td>
</tr>
</tfoot>
</table>
</FooterTemplate>
</asp
I want to use LinkButton in hander function:
protected void BooksList_Add(object sender, DataListCommandEventArgs
e)
{
...
BooksListAdd.Visible = false;
}
but I receive an error: "The name 'BooksListAdd' does not exist in the
current context."
How to write it correctly?
Thank you very much for your help.
/RAM/