How to set property to Guid in aspx page
<p>I have the following code in one of my aspx pages:</p>

<pre><code>&lt;% foreach (Dependency dep in this.Common.GetDependencies(this.Request.QueryString["Name"]))
   { %&gt;
        &lt;ctl:DependencyEditor DependencyKey='&lt;%= dep.Key %&gt;' runat="server" /&gt;
&lt;% } %&gt;
</code></pre>

<p>When I run it, I get the following error: <pre><strong>Parser Error Message:</strong> Cannot create an object of type 'System.Guid' from its string representation '&lt;%= dep.Key %>' for the 'DependencyKey' property.</pre></p>

<p>Is there any way that I can create a control and pass in a Guid in the aspx page? I'd really hate to have to loop through and create these controls in the code behind just because of that...</p>

<p>NOTE: The Key property on the Dependency object <em>is</em> a Guid.</p>
