473,499 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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.Data Item,"sakEvent")%>&<%#DataBinder.Eval(Container.Da taItem,"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

Aug 8 '06 #1
1 8200
when you use a binding expression, its all that allowed in the value and
only one is allowed,

try:

CommandArgument='<%#DataBinder.Eval(Container.Data Item,"sakEvent") &
DataBinder.Eval(Container.DataItem,"sakConfirmatio n")%>'

-- bruce (sqlwork.com)
"IndyChris" <ch***********@yahoo.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
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.Data Item,"sakEvent")%>&<%#DataBinder.Eval(Container.Da taItem,"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

Aug 9 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1069
by: Manu | last post by:
I created a simple win32 dll using MS Visual Studio 6.0. Then I converted my project (dsp & dsw) to .net solution. For that I opened it in Visual Studio .Net and the first time it shown me a...
16
4461
by: Trying_Harder | last post by:
Is it possible to redefine a macro with global scope after undefining it in a function? If yes, could someone explain how? /If/ my question above isn't very clear you can refer to the...
4
1934
by: Jim Ford | last post by:
I have a single C file with the following code: int f2() { /* Blah-blah */ } int f1() { /* Blah-blah */
13
3550
by: seemanta dutta | last post by:
Greetings C gurus, I have used preprocessor directives since a very long time. But whenever I see some professional piece of C code, the linux kernel for example, I get literally confused by the...
2
2784
by: Christopher Ireland | last post by:
Hello, I'm looking for a C# Preprocessor (shareware with source, if possible) which has the functionality of preprocessors which already exist in other languages, e.g. ...
6
2413
by: Urs Thuermann | last post by:
Does a tool exist to apply C preprocessor expansion to a C source only partially, i.e. replace only some directives? I want to replace some #if's by their expansions, e.g. all #ifdef SOME_SYMBOL,...
21
7599
by: Bogdan | last post by:
Can anyone recommend a program for indentation of C preprocessor directives. My file looks like this: #ifdef a #define b #else #define c #endif int main() {
31
2881
by: Sam of California | last post by:
Is it accurate to say that "the preprocessor is just a pass in the parsing of the source file"? I responded to that comment by saying that the preprocessor is not just a pass. It processes...
9
2008
by: Bob | last post by:
Hi, Is it possible to change the references in a project by using preprocessor directives? Thanks, Bob
14
2563
by: lagman | last post by:
All, I'm looking for a tool that is able to take my code base (which is full of preprocessor directives) and spit out source code that is "clean" of any preprocessor directives based on the...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7229
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.