Placing code from webform into class
<p>I have some code in a button_click event in my webform that performs some actions
(writing some xml files).</p>

<p>But i wish to place all my XML code in 1 class within my webproject.</p>

<p>But how do i exactly acces controls from my webform on this class?
And how do i  link those 2 with each other?</p>

<p>Ive tried inherit from System.Web.UI.Page in my class but seems thats not quite it.</p>

<p>Kind Regards.</p>
