Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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);
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900