This code is in C# . I need the same code in ASP.NET.Can you provide me the code?
protected void btntotal_Click(object sender, EventArgs e)
{
For(int i=0;i
{
If(datagridview1.rows[i].cells[2].values==”---”)
{
}
Else
{
Decimal a= Convert.ToDecimal (datagridview1.rows[i].cells[2].values.ToString());
b=b+a;
}
}
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question.
Shweta LodhaPosted Feb 22, 2014, 1:17 PM