ASP.Net conditional databinding

后端 未结 5 1960
夕颜
夕颜 2020-12-09 20:52
<% if(Convert.ToInt32(Eval(\"NbrOrders\"))>=Config.MAX_ENQUIRY_SALES) {  %>
...  

<% } else { %>
...                                        

<% }         


        
5条回答
  •  离开以前
    2020-12-09 21:21

    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?

提交回复
热议问题