Webforms and Template Inheritance parameters
<p>Hi I'm learning a bit of webforms for a sharepoint 2010 module I'm helping with.
I've got a background with razor and enjoy inheriting templates and then using parameters set in the controller to influence the layout.</p>

<p>So in my system I've got a similar setup.</p>

<p>Index.aspx with</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="CESA19Template.Layouts.CESA19Template.Index" MasterPageFile="ValidationTemplate.master" %&gt;
</code></pre>

<p>ValidationTemplate.master with</p>

<pre><code>&lt;%@ Master Language="C#"  MasterPageFile="../Template/Template.master"  AutoEventWireup="true"  %&gt; 
</code></pre>

<p>and the master with</p>

<pre><code>&lt;%@ Master Language="C#" %&gt;
</code></pre>

<p>I would like to add a parameter into the .cs behind ValidationTemplate (ValidationTemplate.master.cs) and then use that in the template as well as have my Index.aspx page change the parameter. </p>

<p>I've tried loads of CodeBehind and all sorts can someone help me, or isn't this possible and needs another way? (maybe a include)</p>