Preprocessor directives must appear as the first non-whitespace character on a line

Discussion in 'ASP .Net' started by IndyChris, Aug 8, 2006.

  1. IndyChris

    IndyChris Guest

    I'm getting
    Preprocessor directives must appear as the first non-whitespace
    character on a line
    with
    <asp:Button OnClick="GenerateEmail" ID="btnGenerate" Runat="server"
    CommandArgument='<%#DataBinder.Eval(Container.DataItem,"sakEvent")%>&<%#DataBinder.Eval(Container.DataItem,"sakConfirmation")%>'
    Text="View"></asp:Button>

    I'm needing to have two values passed to the server from my button. How
    can I do this?

    Thanks
     
    IndyChris, Aug 8, 2006
    #1
    1. Advertising

  2. when you use a binding expression, its all that allowed in the value and
    only one is allowed,

    try:

    CommandArgument='<%#DataBinder.Eval(Container.DataItem,"sakEvent") &
    DataBinder.Eval(Container.DataItem,"sakConfirmation")%>'

    -- bruce (sqlwork.com)


    "IndyChris" <> wrote in message
    news:...
    > I'm getting
    > Preprocessor directives must appear as the first non-whitespace
    > character on a line
    > with
    > <asp:Button OnClick="GenerateEmail" ID="btnGenerate" Runat="server"
    > CommandArgument='<%#DataBinder.Eval(Container.DataItem,"sakEvent")%>&<%#DataBinder.Eval(Container.DataItem,"sakConfirmation")%>'
    > Text="View"></asp:Button>
    >
    > I'm needing to have two values passed to the server from my button. How
    > can I do this?
    >
    > Thanks
    >
     
    bruce barker \(sqlwork.com\), Aug 9, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    2,695
  2. Nalla
    Replies:
    25
    Views:
    905
    MikeyD
    Oct 8, 2003
  3. seemanta dutta

    how to make elegant use of preprocessor directives

    seemanta dutta, Nov 27, 2003, in forum: C Programming
    Replies:
    13
    Views:
    645
    Randy Howard
    Dec 1, 2003
  4. Theon Greyjoy

    Preprocessor directives in codebehind file

    Theon Greyjoy, Oct 6, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,549
    bruce barker \(sqlwork.com\)
    Oct 6, 2006
  5. Water Cooler v2

    Preprocessor Directives

    Water Cooler v2, Jul 4, 2005, in forum: C Programming
    Replies:
    5
    Views:
    575
    Lawrence Kirby
    Jul 5, 2005
Loading...

Share This Page