Help with 70-315 and Kalani Step-by-Step Example

Discussion in 'MCSD' started by Derek M. A. Lee-Wo, Jul 12, 2004.

  1. I have just started studying for 70-315 using the Kalani book. In trying
    the 1.7 Step-by-Step example, I found that I can't get the code to work as
    he has it.

    The example uses:

    <%@ Page Language="C#" Inherits="Temperature.TemperatureCB"
    Src="TemperatureCB.cs" %>

    which is supposed to use a code-behind cs file WITHOUT precompilation.

    When I try to view the page I get

    Compiler Error Message: CS1595: 'Temperature.TemperatureCB' is defined in
    multiple places; using definition from

    If I remove the "Src" from the Page directive, it works fine.

    Kalani's example of the code-behind WITH precompilation has me remove the
    "Src" and compile the cs file manually, although with Visual Studio, I
    didn't need to do that.

    Am I getting confused here? Did I do something wrong? Could his examples
    be for ASP 1.0 whereas I'm using ASP 1.1?

    Derek
     
    Derek M. A. Lee-Wo, Jul 12, 2004
    #1
    1. Advertising

  2. Derek M. A. Lee-Wo

    Raja Guest

    Check out for errata @
    http://www.techcontent.com/TG70315.htm

    - Raja.

    >-----Original Message-----
    >I have just started studying for 70-315 using the Kalani

    book. In trying
    >the 1.7 Step-by-Step example, I found that I can't get

    the code to work as
    >he has it.
    >
    >The example uses:
    >
    > <%@ Page Language="C#"

    Inherits="Temperature.TemperatureCB"
    >Src="TemperatureCB.cs" %>
    >
    >which is supposed to use a code-behind cs file WITHOUT

    precompilation.
    >
    >When I try to view the page I get
    >
    >Compiler Error Message:

    CS1595: 'Temperature.TemperatureCB' is defined in
    >multiple places; using definition from
    >
    >If I remove the "Src" from the Page directive, it works

    fine.
    >
    >Kalani's example of the code-behind WITH precompilation

    has me remove the
    >"Src" and compile the cs file manually, although with

    Visual Studio, I
    >didn't need to do that.
    >
    >Am I getting confused here? Did I do something wrong?

    Could his examples
    >be for ASP 1.0 whereas I'm using ASP 1.1?
    >
    >Derek
    >
    >
    >
    >.
    >
     
    Raja, Jul 13, 2004
    #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. Jim
    Replies:
    0
    Views:
    443
  2. Richard I.P
    Replies:
    0
    Views:
    480
    Richard I.P
    Jan 5, 2004
  3. mdacguy

    70-315 book by Amit Kalani

    mdacguy, Mar 31, 2005, in forum: MCSD
    Replies:
    0
    Views:
    1,119
    mdacguy
    Mar 31, 2005
  4. =?Utf-8?B?dGF4aWRyaXZlcg==?=

    Kalani 70-315 eBook for 70-316

    =?Utf-8?B?dGF4aWRyaXZlcg==?=, May 21, 2005, in forum: MCSD
    Replies:
    2
    Views:
    727
    =?Utf-8?B?U2FyaXRoYQ==?=
    Jul 16, 2005
  5. Replies:
    2
    Views:
    359
Loading...

Share This Page