a complete homepage in Silverlight ?
Last post 05-11-2008 11:49 PM by Yi-Lun Luo - MSFT. 5 replies.
Sort Posts:
05-04-2008 3:39 AM
a complete homepage in Silverlight ?

Hey Guys,

 i coded a complete Website in php but it looks a lil boring
then i saw silverlight and thought is it possible to recode my Website ?

 

i uploaded the script to my serverso u can download it
http://torrent-infection.kicks-ass.net/NV+_0.9.9.rar

the prob is that thing is in german (like me :) ) but i hope u can help me

mfg 

GlasFist

Joined on 05-04-2008
Posts 3
05-06-2008 5:40 AM
Marked as Answer
Re: a complete homepage in Silverlight ?

Hello, I don't know PHP, and I can't run your web site on an Apache server. It gives me a lot of script error... But with Expression Web 2, I got an overview of your homepage index.php. It looks like you have an application called Shout box. It looks like a program that allows users to post messages. You have a series of pictures to represent the various expressions. It looks like a forum.

If this is what you want to redesign with Silverlight, first I must warn you currently Silverlight doesn't have well support of documents and rich text input. You may have to overlay html rich text box on top of the Silverlight content.

Also I've noticed you've embedded too many SQL queries and dynamic constructed html in the PHP pages. I don't know if this is a recommended approach in PHP, but I don't think it's a good option. Silverlight works best with SOA (service oriented architecture), where you have some web services (either written by yourself or third party) that get data from database, xml files, or any other media. Then your Silverlight application will call the web services to get the data, and present them to the user. You can also get user inputs in the Silverlight application, and call web services to store the new data on the server. Silverlight also recommends you to separate markup from code, so a designer can work on the markup while a developer can work on the code. This approach also have a lot of benefits on site maintenance. By your current approach, I'm afraid you'll have to completely redesign your architecture...

So if you want to use Silverlight to enhance your web site, I think you can create some small Silverlight contents, such as a navigation bar, and host the Silverlight contents in your PHP pages. Or if you have ambitions, you can completely recreate your site to use an SOA architecture and AJAX client programming model. But even though, you should know Silverlight has limitations. It's very difficult to create a whole web site in Silverlight. You can try to convert some modules that don't require rich text to Silverlight, such as an account management system, where the users can modify their profiles, manage friends, view the links to their recent posts, etc.

shanaolanxing - Please mark the posts as answers if they help and unmark if they don't.

Yi-Lun Luo - MSFT

Joined on 10-29-2007
Posts 1,084
05-08-2008 9:36 AM
Re: Re: a complete homepage in Silverlight ?

 so Silverlight isnt dynamic and more like HTML ?

 

if yes silverlight isnt good for my project :(

 

but thx for your help 

GlasFist

Joined on 05-04-2008
Posts 3
05-08-2008 11:05 PM
Re: Re: Re: a complete homepage in Silverlight ?

Silverlight can be dynamic if you use animations or add/remove elements on the fly using the object model. I just mean it's not a good idea to construct XAML string dynamically. This approach is likely to be full of errors. For your project, as I said, it's not easy to convert your whole web site to Silverlight. You can begin from adding small Silverlight contents such as a navigation bar.

shanaolanxing - Please mark the posts as answers if they help and unmark if they don't.

Yi-Lun Luo - MSFT

Joined on 10-29-2007
Posts 1,084
05-09-2008 1:55 PM
Re: Re: Re: a complete homepage in Silverlight ?

 the only reason why i wanna trysilverlight is to improve my performance

 the script i postet here is for a bittorrent tracker e.g. http://www.torrentbytes.net/signup.php


my website has ~45000 users and ~ 500 users are online all the time (not ever the same but u know what i mean Smile)
next thing i have an "announce.php" that handels all torrentrequests, tracker updates, upload / download stats, peers ect. ~ 100000 < - > 200000 all the time.

 
this costs massive performance my siterefreshtime is at the moment over a second (~ 1.63)


so i think C# Backend would increase the performance massivly and Silverlight for the frontend because its look very very good :) 


i wanna make a C# Backend with Silverlight frontend. so can silverlight put things in a database, can it read databases
thats the most important part. things like a board can i do external Big Smile

GlasFist

Joined on 05-04-2008
Posts 3
05-11-2008 11:49 PM
Re: Re: Re: Re: a complete homepage in Silverlight ?
Silverlight doesn't know how your data is stored. It only knows to get the data from web services. If you want a C# backend on the server, you can use LINQ to SQL to access database, and use WCF to build web services to expose the data. How Silverlight improves performance is somehow similar to AJAX. You don't make post backs to the server, generate the html page on the server, and send back the html page to the client. Instead, you make request to web services, and the server returns only the data that you need. That is, the data manipulation work is done on the server by a server side technology (ASP.NET, WCF, PHP, or whatever), and the rendering work is done on the client (Silverlight).

 

shanaolanxing - Please mark the posts as answers if they help and unmark if they don't.

Yi-Lun Luo - MSFT

Joined on 10-29-2007
Posts 1,084