hi,
i m adding attribute of runat=server from codebehind file
<asp:imagebutto n id="imgCompleti onDate"
CssClass="clIma geButton"
ImageAlign="abs Middle" BorderStyle="No ne" ImageUrl="..ima ges
\img1000024.gif " CausesValidatio n="False" Height="20"></
asp:imagebutton ></TD>
in code behindfile method
imgCompletionDa te.Attributes.A dd("runat","'se rver'");
, but it gives error CS1040: Preprocessor directives must appear as
the first non-whitespace character on a line and shows
the line which binds data at runtime. that is
<TD align="left" valign="top" class="GridCell " height="25px">
<%#DataBinder.E val(Container, "DataItem.Docum entTitle")%>
</TD>
thx
i m adding attribute of runat=server from codebehind file
<asp:imagebutto n id="imgCompleti onDate"
CssClass="clIma geButton"
ImageAlign="abs Middle" BorderStyle="No ne" ImageUrl="..ima ges
\img1000024.gif " CausesValidatio n="False" Height="20"></
asp:imagebutton ></TD>
in code behindfile method
imgCompletionDa te.Attributes.A dd("runat","'se rver'");
, but it gives error CS1040: Preprocessor directives must appear as
the first non-whitespace character on a line and shows
the line which binds data at runtime. that is
<TD align="left" valign="top" class="GridCell " height="25px">
<%#DataBinder.E val(Container, "DataItem.Docum entTitle")%>
</TD>
thx
Comment