Error:The name 'Container' does not exist in the current context
-
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
-
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
-
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
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 ?