How to get the current calling form in a class?
I have a function in a class library. This function needs to find some controls on a form based on a XML file which contains some controls name, and before the page is loaded, re-set these controls property. Every web page of the application will need to call this function. I didn't pass in the form as a parameter because I think there must be a way to access the current caller form. isn't this true?
System.Web.HttpContext.Current.Request.Form doesn't work, i think because the form is not loaded yet.
How do I do this?
Thanks.
|