1) currently i have the above code in my .aspx file as i was not able to get it from class file
when used from aspx file as per the logic i need all the stated controls in the code to be readonly or disabled
i have call this method in page load
but still all the text controls are not readonly
2) as i need to use in in many places want to use it from class file
but i am bale to do it
hope its clear