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. General Programming
  3. C#
  4. Error:The name 'Container' does not exist in the current context

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

Scheduled Pinned Locked Moved C#
dockerhelptutorialquestion
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 ]]> <%{ %> <td> Invoiced </td> <%}else{ %> <td> Not Invoiced </td> <%} %> 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 and how to solve this. Please suggest me. Thank you

    Know is Drop, Unknown is Ocean

    L H 2 Replies Last reply
    0
    • E Exelioindia

      Hi all, In my repeater control i have done a simple if condition as below ]]> <%{ %> <td> Invoiced </td> <%}else{ %> <td> Not Invoiced </td> <%} %> 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 and how to solve this. Please suggest me. Thank you

      Know is Drop, Unknown is Ocean

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      It is because you are asking in the wrong forum. Try ASP.NET.

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 beta 1 - out now!
      ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))

      1 Reply Last reply
      0
      • E Exelioindia

        Hi all, In my repeater control i have done a simple if condition as below ]]> <%{ %> <td> Invoiced </td> <%}else{ %> <td> Not Invoiced </td> <%} %> 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 and how to solve this. Please suggest me. Thank you

        Know is Drop, Unknown is Ocean

        H Offline
        H Offline
        Hossein Mayboudi
        wrote on last edited by
        #3

        There are some issue around this answer In My Example: ![CDATA[<%# for (int i = 0; i < System.IO.Directory.GetFiles(Server.MapPath(string.Format("~/Img/Att/{0}/", ((System.Data.Common.DbDataRecord)Container.DataItem)["ID"], "*.jpg"))).Length; i++)%><%{%>* <%= i %>
        <%}%>]]> I receive these errors: Error 2 Invalid expression term ',' Destination.aspx 3 1 Error 3 Invalid expression term 'for' Destination.aspx 188 74 Error 4 The name 'i' does not exist in the current context Destination.aspx 188 244 Error 5 ; expected Destination.aspx 188 Error 6 ; expected Destination.aspx 188 Error 7 Invalid expression term ')' Destination.aspx 188 Error 8 ; expected Destination.aspx 188 Error 9 Invalid expression term ')' Destination.aspx 188 Do you have any idea ?

        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