Page view counter
Beginner concepts related to integrating Silverlight into a .net webpage
Last post 08-26-2008 1:29 AM by HarshBardhan. 5 replies.
Sort Posts:
08-21-2008 7:17 PM
Beginner concepts related to integrating Silverlight into a .net webpage

I have finally got Silverlight Beta2, Visual Studio 2008 Sp1, and Expression Blend 2.5 June Preview, all working together. Now I'm ready to start working with Silverlight pages on a .net website. I'd like to learn about concepts related to the design of a .net website that uses silverlight. I'm just beginning, so I'm hoping to learn some introductory concepts.

Basically I see that Silverlight will create the sitenametestpage.aspx file, which calls a sitename.xap file in ClientBin. This sugests that the Silverlight design environment is entirely contained within the one silverlight page.xaml.

When I worked with a .net website, an aspx page was the design environment.

What are the conceptual changes involved in transitioning into using this new environment? Where I used to think in terms of MasterPages and controls in the content (for the .net or aspx page), how does one think of a silverlight web page design environment?

So for example, I'd like to imagine that I could use the silverlight page as though it were an aspx page. Then I could have a graphic environment to place in my master pages, navigation, and content. But it doesn't seem to work that way... I don't really see how I could plug in my menutree control, log in control, and so on. Where would I do that? In the page.xaml (seeing as that seems like the source)? Can't do that, so what is the general approach to building standard aspx controls in a silverlight page.

JeffLeese

Loading...
Joined on 08-19-2006
Posts 12
08-22-2008 12:30 AM
Marked as Answer
Re: Beginner concepts related to integrating Silverlight into a .net webpage

Hi.

You can create different user Controls for your menus and other stuffs.

You Can embed all of them together in another Control and set that embedded control as your Root visual so that it will be visible to user on their aspx pages.As far as master page concept is their you can embed a Silverlight Content in Aspx page and you can still use master page over there.

If you want to pass some data between silverlight controls and aspx controls you can use javascript or InitParams of Xaml control.

Mark this as answer if it answers your Question...

Mark as answer if this post answered your question.

Harsh Bardhan

HarshBardhan

Loading...
Joined on 05-07-2008
Bangalore
Posts 1,161
08-25-2008 2:13 AM
Re: Beginner concepts related to integrating Silverlight into a .net webpage

Thanks, its good to know that it can be done. Now I would need some detail as to how I can do this. I realize this is a lot to ask of another forum member, but perhaps someone could offer some links that explain and demonstrate these kinds of tasks.

JeffLeese

Loading...
Joined on 08-19-2006
Posts 12
08-25-2008 2:20 AM
Re: Beginner concepts related to integrating Silverlight into a .net webpage

Hi,

You can check this video which demonstrates init params exemple..

http://silverlight.net/learn/learnvideo.aspx?video=72312

Mark this as answer if it answers your Question...

Mark as answer if this post answered your question.

Harsh Bardhan

HarshBardhan

Loading...
Joined on 05-07-2008
Bangalore
Posts 1,161
08-26-2008 1:07 AM
Re: Re: Beginner concepts related to integrating Silverlight into a .net webpage

Well, I watched the videolink you sent, and yes it covers passing parameters to a silverlight page, but I'm still wondering about my initial question. I'd like to learn how to use master pages and controls like the login, within silverlight. I'd like to read an article that describes the conceptual shifts involved in moving from .net website design to a silverlight context, ideally with examples. Anyway, I'll continue my searches.

JeffLeese

Loading...
Joined on 08-19-2006
Posts 12
08-26-2008 1:29 AM
Marked as Answer
Re: Re: Beginner concepts related to integrating Silverlight into a .net webpage

Hi.

You can check this thread.

It also discuss same issue...

http://silverlight.net/forums/t/11079.aspx

Mark this as answer if it helps..

Mark as answer if this post answered your question.

Harsh Bardhan

HarshBardhan

Loading...
Joined on 05-07-2008
Bangalore
Posts 1,161
Microsoft Communities