Hi
On below code i am getting above error
if (txt_Percent.Text == 0)
Thanks
== compares strings, not integers (or strings and integers).
A textbox has a string in it, not an int. If you are looking for the number zero in a textbox, it's a string.
Try:
if(txt_Percent.Text == "0")