Skip to main content
Home Forums General Silverlight Getting Started Web sites with Silverlight 2
6 replies. Latest Post by jamlew on March 20, 2008.
(0)
dustaf
Member
4 points
3 Posts
03-18-2008 10:59 AM |
Right now it appears to me that I can only use Silverlight 1.0 to create websites. When will I be able to use Silverlight 2 to create website?
Psychlis...
Contributor
6040 points
973 Posts
03-18-2008 11:17 AM |
I assume you're asking about the nature of any go-live license, not a technical question.
At MIX, they announced that there will be a Beta 2, around 3 months after Beta 1 and that it will likely include a go-live license.
Pete
03-18-2008 11:35 AM |
Maybe I'm just confused how this all works, but I am using Expression Blend 2.5 and it lets me create a Silverlight 2 application, but I can only create a Silverlight 1 site. So I was wondering when I would be able to create a Silverlight 2 site with some of the extra controls that were going to be included in Silverlight 2. Is there an approx. date when this will be available?
jamlew
2830 points
432 Posts
03-18-2008 1:48 PM |
Silverlight 1, being based on JavaScript, ran inside of a website. Silverlight 2 runs on it's own runtime, so to speak, and so has it's own project type. If you create a Silverlight 2 project, the output will be consumed by the Silverlight 2 ActiveX control in the browser, but it needs to be hosted inside of a webpage separately. If you are using Visual Studio, when you create a Silverlight Application it gives you the Silverlight 2 project and a hosting ASP.NET website. If you create the project in Blend, (I think) it generates a hosting web page at runtime when you test the project.
Allen Ch...
Star
13856 points
1,800 Posts
03-19-2008 11:12 PM |
Hi:
dustaf:but I can only create a Silverlight 1 site.
Silverlight 2 beta 1 is available now. You can download it here:
Microsoft Silverlight Tools Beta 1 for Visual Studio 2008
Then you can get Visual Basic and C# Project templates for SilverLight 2 project.
Regards
03-20-2008 1:42 PM |
I went to the link you sent and am still in the same situation. I am going in to Microsoft Expression Blend 2.5 and the only choice it is giving me is for projects is 'Silverlight 1 Site' and 'Silverlight 2 Application'. What I want is a project called somethin like 'Silverlight 2 Site'. If I choose Silverlight 1 Site, it creates a Silverlight 1.0 web site. How can I create a Silverlight 2 web site?
03-20-2008 2:02 PM |
There's technically no such thing as a 'Silverlight 2 website'. What you need to do is build a separate website with a page that hosts your Silverlight 2 application. You'll need to add the following to whatever page hosts the Silverlight control:
For HTML:
</object>
For ASP.NET pages, you can use:
If you have Visual Studio around and you create a Silverlight 2 application, you'll see that it prompts to create a website in parallel with the Silverlight project. If you don't have Visual Studio around, you'll have to put together a hosting page from scratch. You might be able to run your Silverlight project in Blend, save the page that it generates to preview, and use that saved page in the future (you'll have to fix the xap reference and whatnot).