Click here to Skip to main content
11,411,494 members (66,348 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Silverlight MVC3
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 30-Jul-12 0:17am
churahi747

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

  Print Answers RSS
0 OriginalGriff 223
1 Sascha Lefévre 155
2 Sergey Alexandrovich Kryukov 149
3 ProgramFOX 90
4 Dave Kreskowiak 90
0 Sergey Alexandrovich Kryukov 8,920
1 OriginalGriff 7,128
2 Maciej Los 3,440
3 Abhinav S 3,248
4 Peter Leow 3,059


Advertise | Privacy | Mobile
Web01 | 2.8.150414.5 | Last Updated 30 Jul 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100