c# - How to change the size of a Silverlight object in asp? -



c# - How to change the size of a Silverlight object in asp? -

i have implemented photo gallery in asp website. code looks this:

object id="silverlightobject" data="data:applicaation/x-silverlight-2," type="application/x-silverlight-2" class="obiect"> param name="source" value="clientbin/galery.xap"

i need alter object size dynamically aspx.cs code page on condition, can't access object (something if(a>b) object.height=500).

you need runat="server" attribute on tag accessible server code. utilize id of element, not tag name:

silverlightobject.height = 500;

c# asp.net silverlight

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -