You can add a property to your code, say "MyProperty", set the value at boot time, and then access this property directly in aspx ...
In codebehind ...
public partial class _Default : System.Web.UI.Page { protected string MyProperty { get; set; } protected string MyOtherProperty { get;set; } protected void Page_Load(object sender, EventArgs e) { MyProperty = "SomeValue"; MyOtherProperty = "SomeOtherValue"; } }
In Aspx ...
... <object width="550" height="400"> <param name="movie" value='<%= MyProperty %>' /> <embed src='<%= MyOtherProperty %>' width="350" height="370"></embed> </object> ...
markt source share