I never could imagine that someone would be able to do so: convert string to integer, immediately convert back to string and complain
it's not integer as it fails to divide by 44!
Hard-coded immediate string constant, hard-coded 44!
Thank you very much. Unforgettable experience.
Somebody always dislike harsh answers and down-vote. It cannot help OP. I say something which I really have to say, no more no less.
Answering the question in the comment below:
Label4.Text = Convert.ToInt32(Session["priceday1"].ToString()) / 44;
has another bug: the type on the left of "=" is string on the right — integer. I have no idea what tells you to assign one to another. You would nee to call
on all of it:
Label4.Text = (Convert.ToInt32(Session["priceday1"].ToString()) / 44;).ToString()
And the naming of members/variables is no good. Never use auto-generated names, rename to something semantic. Auto-generated names violate (good) Microsoft naming conventions (in particular, because there is no an algorithm to name them better). And hard coded immediate constants
like "procedays1" is no good.