CompilationError

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CreativeMind

    CompilationError

    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
  • Bob Barrows [MVP]

    #2
    Re: CompilationErro r

    CreativeMind wrote:
    hi,
    i m adding attribute of runat=server from codebehind file
    There was no way for you to know it (except maybe by browsing through
    some of the previous questions before posting yours - always a
    recommended practice), but this is a classic asp newsgroup. ASP.Net is
    a different technology from classic ASP. While you may be lucky enough
    to find a dotnet-savvy person here who can answer your question, you
    can eliminate the luck factor by posting your question to a newsgroup
    where the dotnet-savvy people hang out. I suggest
    microsoft.publi c.dotnet.framew ork.aspnet.
    There are also forums at www.asp.net where you can find a lot of people
    to help you.

    HTH,
    Bob Barrows

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Comment

    Working...