Attach Hiddenfield to HTML Markup
<p>I am attaching an object to my aspx page. Since the object's type is determined at runtime, I want to be able to set the value of this object's type parameter to a hiddenfield value which I set when I run my web application.</p>

<pre><code>&lt;asp:HiddenField ID="hiddenField1" runat="server" /&gt;

&lt;object id="myObject"
        type="hiddenfield1.value???"&gt;
&lt;/object&gt;
</code></pre>

<p>As you can see in the code snippet above, I need to set the type to the hiddenfield's value.  How do I go about this. </p>

<p>Thanks.</p>
