<% if(Convert.ToInt32(Eval(\"NbrOrders\"))>=Config.MAX_ENQUIRY_SALES) { %> ... <% } else { %> ... <% }
I can't find something wrong in your sentences but comparative you made between Config.MAX_ENQUIRY_SALES and Convert.ToInt32(Eval("NbrOrders")). Are these operator of the same type? Can you show the type of each one in your web page?