Horje
calculated field gridview asp.net Code Example
calculated field gridview asp.net
protected decimal Calculate(string a, string b)
{
    decimal ad = Convert.ToDecimal(a);
    decimal bd = Convert.ToDecimal(bd);

    if (bd == 0)
    {
        return 0; // or whatever
    }

    return ad / bd;
}
calculated field gridview asp.net
<asp:Label ID="lblCalc" runat="server" >
    <%# Calculate(Eval("val1").ToString(), Eval("val2").ToString()) %>
</Label>




Csharp

Related
.net framework method Code Example .net framework method Code Example
c# null check Code Example c# null check Code Example
c# usermanager update user Code Example c# usermanager update user Code Example
C# resize window without title bar Code Example C# resize window without title bar Code Example
how to center a window in monogame Code Example how to center a window in monogame Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9