Click here to Skip to main content
15,885,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have gridview with 5 columns.A,B,C,D,E.All will store integer value.I want to write function to display value in E column.I want to check value of D column.If it is not lies between B and C then want to display yes in E column by calling function in aspx page.Please reply
Posted
Comments
Nandakishore G N 12-Jul-13 5:32am    
paste what have done till now?

1 solution

C#
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">
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900