asp.net - How to set property of a Siverlight control from .aspx.cs page? -


here code

 public partial class mainpage : usercontrol {     public mainpage()     {         initializecomponent();                }      public string currentpage { get; set; } 

now want set currentpage value .aspx page load event?

thanx

if want pass in parameters silverlight application calling web page have specify , assign parameters inside <object ... /> tag you're using embed silverlight app.
example such parameter be:

<object data="..." type="...">   <param name="parameter1" value="value1" /> </object> 

inside application_startup method (app.xaml.cs) can query these parameters startupeventargs' initparams collection.

if want hosting url can use property everywhere inside silverlight application:

system.windows.browser.htmlpage.document.documenturi 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -