title: c# - I need two runat="server" on the same page
body: <p>I am new to C# and I found out that I can only have 1 <code>runat="server"</code>  on a page at the time. I have 1 in my masterpage and 1 in my login page.</p>
  
  <p>I need both of them to work because i have some asp buttons in my masterpage which I need to edit using the masterpage.master.cs . </p>
  
  <p>I also need it on my login page aswell to check weither the username and password fields equal data out of the database.</p>
  
  <p>If i remove either one of them from a <code>runat="server"</code> to a regular form the asp ID's of the buttons and fields are not found in the backend code page. Aswell as the form will be unsubmittable. (ERROR 500)</p>
  
  <p>I am new to .net and C# and was wondering, Is there another way to use the ID's in the backend code file's (*.aspx.cs) or to use multiple <code>runat="server"</code> froms (with a workaround or something)?
  Thanks in advance!</p>