title: How can I access controls on a web page from another class in vb.net
body: <p>I have a Webpage called departments that is calling another class in the codebehind. This class creates dynamic objects for the departments page and loads them into it. For example it will load grid views showing data, buttons, text box's, etc depending on data it reads from a database. </p>
  
  <p>In this class I have created an upload DIV that contains a fileupload text box and a submit button. I am trying to upload what is in the fileupload text field (which the user selects a file from their pc and it loads in the location and file name) with the submit button I have created dynamically. In the click event of the submit button I need to figure out how to get that information from the text field off of the departments page. I am having trouble accessing this b/c it is not the department page code behind file and is another class separate from the departments page.</p>