Why are you posting the same message multiple times? Doesn't make it any easier.
That said, this is by design.
WebMethod(EnableSession = true)]
public static int fun()
//here i am unable to find the control
Web methods are static and thus apply to the class, rather than to an instance of a class. As such you can't access controls.
Try an UpdatePanel or an AJAX call that results JSon.