Instead of setting object as a server side variable you can try as follows.
<object id="myObj" type="text/html" data="<%=url %>" style="height:800px;width:800px;" />
In here
url
is a server side variable.
some times you want to set the param fields also
<object id="myObj" type="text/html" data="<%=url %>" style="height:800px;width:800px;"
width="900px" height="60">
<param name="movie" value="<%=url %>" />
</object>
for the iFrame also you can use the same way to set the
src
.
also, here are some alternative ways
http://forums.asp.net/t/1445587.aspx/1[
^]
http://stackoverflow.com/questions/10907607/what-is-the-best-way-of-setting-the-src-of-an-iframe-from-a-codebehind-file-in-a[
^]