protected string GetPerformance(object perf,object usl,object lsl)
{
string strper=perf.ToString();
int i = Convert.ToInt32(strper);
string strusl = usl.ToString();
int j = Convert.ToInt32(strusl);
string strlsl = lsl.ToString();
int k= Convert.ToInt32(strusl);
if (strper < strlsl)
{
return YES;
}
else
{
return 0;
}
}
in aspx
<asp:Label ID="lblCS" runat="server" Text='<%#GetPerformance(Eval("perf"),Eval("usl"),Eval("lsl"))%>' CssClass="tableInput">