Try not to make the textbox directly readonly by changing its properties.
Try this one.It works.

txtsum.Attributes.Add("readonly", "readonly")