Try the following:
<object id="object1">
<param name="<%= MyFunction() %>" value="www.youtube.com?id=123" id="video1" />
<param name="size" value="large" />
<param name="category" value="wide" />
</object>
In the code behind, for example:
protected string MyFunction()
{
return "param1Value";
}
Edit: Removed both runat = "server" . If they were present only to use the code behind to set the parameter, they are not needed for this solution.
source
share