fza churahi

fza churahi

  • NA
  • 2
  • 3.3k

Problem in adding multiple silverlight objects in multiple mvc3 views

Aug 7 2012 1:34 AM
I am new to mvc3. i am working on a project in which i combine silver light 5 and mvc3. IN MVC3 I CREATE A MASTER PAGE NAMED "SITE.master" and add silver light control host object in it.I add a view Index.aspx and inherit it from sit.master. When i call Index.aspx it shows me silver light controls.
 
then i create a second page in silver light 5 named "second.xaml" and i added second silver light page object in mvc3's second master page named as "SECONDMASTER.master. I added a view named "About.aspx" and inherit it from secondmaster.master. And i called about.aspx from a button on index page. then it show me the about page but not the silverlight controls exist on the "second.xaml"
 
Please tell me how i show the "second.xaml"'s controls on SECONDMASTER.master or on "About.aspx"
I have two text boxes and 1 button on first silverlight page.
My "SECOND.XAML" page only has a label with "THIS IS ABOUT PAGE"
 
I added Object of "SECOND.xaml" in secondmaster.master.
 
About.aspx is inherited from secondmaster.master.
 
It show blank page when calling About.apx from button click event.
here is my About page calling method on button click event. It works and it call the About Page but not show the controls of silverlight.
Uri u = new Uri("http://localhost:56243/Home/About", UriKind.Absolute);
HtmlPage.Window.Navigate(u);