Hello all,
I'm getting this error when I try to change a parameter of an ImageButton
found in my datagrid.
Here's the code -
if (iPage > 1)
{
DataGrid1.ShowFooter = true;
btnDelPage.ImageUrl = "images/add.gif"; // This line causing the
error
}
I have defined the imagebutton near the top of the class like so -
protected System.Web.UI.WebControls.ImageButton btnDelPage;
And my imagebutton found in the datagrid featuring the image button is as
follows -
<asp:ImageButton ID="btnDelPage" CommandName="DelPage"
ImageUrl="images/deletepage.gif" runat="server" />
Any help would be much, much appreciated!
Thanks in advance,
Alastair
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/