Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Error:The name 'Container' does not exist in the current contextnew

Error:The name 'Container' does not exist in the current contextnew

Scheduled Pinned Locked Moved ASP.NET
dockerhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Exelioindia
    wrote on last edited by
    #1

    Hi all, In my repeater control i have done a simple if condition as below <%if(((Estate)Container.DataItem).Invoiced) %> <%{ %> <td> Invoiced </td> <%}else{ % > <td> Not Invoiced </td> <%} % > Estate is my DTO class When i run this code i am getting a error as below The name 'Container' does not exist in the current context What is the reason for this error. Please suggest me. Thank you

    Know is Drop, Unknown is Ocean

    C A 2 Replies Last reply
    0
    • E Exelioindia

      Hi all, In my repeater control i have done a simple if condition as below <%if(((Estate)Container.DataItem).Invoiced) %> <%{ %> <td> Invoiced </td> <%}else{ % > <td> Not Invoiced </td> <%} % > Estate is my DTO class When i run this code i am getting a error as below The name 'Container' does not exist in the current context What is the reason for this error. Please suggest me. Thank you

      Know is Drop, Unknown is Ocean

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The name container, does not exist in this specific context.

      Christian Graus Driven to the arms of OSX by Vista.

      1 Reply Last reply
      0
      • E Exelioindia

        Hi all, In my repeater control i have done a simple if condition as below <%if(((Estate)Container.DataItem).Invoiced) %> <%{ %> <td> Invoiced </td> <%}else{ % > <td> Not Invoiced </td> <%} % > Estate is my DTO class When i run this code i am getting a error as below The name 'Container' does not exist in the current context What is the reason for this error. Please suggest me. Thank you

        Know is Drop, Unknown is Ocean

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Exelioindia wrote:

        What is the reason for this error.

        Because,

        Exelioindia wrote:

        The name 'Container' does not exist in the current context

        :)

        cheers, Abhijit My Recent Article : Beginner's Guide to ASP.NET Application Folder

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups