Results 1 to 5 of 5

Thread: How to integrate Silverlight technology to Asp.net applications

  1. #1
    Join Date
    Feb 2010
    Posts
    182

    How to integrate Silverlight technology to Asp.net applications

    Hi all,

    Silverlight will support developers in creating rich web applications. We are about to see an attractive vision is the arrival of the wave of the page will be able to take advantage of flexible media playback, animation and vector graphics rendering. I want to know that how to integrate Silverlight technology to Asp.net applications. Please suggest. Thanks in advance.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    How to integrate Silverlight technology to Asp.net applications

    Use of queues in silverlight and asp.net. Ajax share data between the data because it is not guarantee that all at the same time through ajax removed, so the program and then update panel in the asp.net Textbox used as a right column. asp.net Ajax will constantly update the data, while silverlight periodically extract data from the queue. You need to create javascript for this.
    Code:
    CreateSilverlight.js
    function createSilverlight ()
    {
    Silverlight.createObjectEx ((
    source: "Ticker123.xaml",
    parentElement: document.getElementById ( "SilverlightControlHost123"),
    id: "SilverlightControl123",
    properties: (
    width: "400",
    height: "21",
    version: "0.95",
    background: "# 00025800",
    isWindowless: false,
    enableHtmlAccess: true),
    events: ()
        });
    }

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: How to integrate Silverlight technology to Asp.net applications

    The page uses silverlight show stock quote data, and asp.net and ajax retrieve data from the server to make this textbox be used as a queue, asp.net ajax stock data would be to fill the queue, when it adopted after the javascript to silverlight control will be removed from the queue.
    Code:
    <! - AJAX code ->
    <asp:ScriptManager runat="server" ID="scriptManager">
    <Services>
    <asp:ServiceReference Path="StockUpdate123.asmx" />
    </ Services>
    </ asp: ScriptManager>
    The following asp.net Ajax code to take a few important tasks, by increasing the <asp:ScriptManager> control, we can access the asp.net Ajax provides a method, using aps.net and ajax must have the controls on the page, this code is at the same time also registered in the first load when the call leaves
    javascirpt of the web service StockUpdate.asmx.
    <asp:UpdatePanel ID="StockPanel" runat="server">
    <ContentTemplate>
    <asp: Timer ID = "RefreshTimer123" runat = "server" Interval = "2000"
    OnTick = "RefreshTimer_Tick"> </ asp: Timer>
    <asp:TextBox ID="NewStockQueue123" runat="server" Width="400">
    </ asp: TextBox>
    </ ContentTemplate>
    </ asp: UpdatePanel>
    The following code will use ajax component to access the server from time to time and arrange for new stock into the textbox queue. Check and reply.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    How to integrate Silverlight technology to Asp.net applications

    I will integrate by XML run in siverlight plug-in, it will scroll the screen displays stock quotes data from the west two textblocks will contain the data into the stock market.
    Code:
    <! - These contain the stock market information that are visible to
    the client. ->
    <TextBlock x: Name = "tickerText123" Canvas.Top = "2" FontSize = "10"
    Foreground = "blue" FontFamily = "Arial Black" Text = "" />
    <TextBlock x: Name = "tickerText211" Canvas.Top = "2" FontSize = "10"
    Foreground = "blue" FontFamily = "Arial Black" Text = "" />
    story board will move data from the left until it reaches the display edge, and then call the refresh Ticker code to copy data from tickertext211 to tickerText123, update data from the queue to ticekertext211 and re-start the animation. Check and reply.

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    How to integrate Silverlight technology to Asp.net applications

    I am adding System.Web.Extensions in the GAC and the asp.net ajax namespace after this code:
    Code:
    using System.Web.Script.Services;
    We can also add script serviece properties in the class
    Code:
    [WebService (Namespace = "http://123.name/")]
    [WebServiceBinding (ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ScriptService]
    public class StockUpdate: System.Web.Services.WebService
    MarketManager.cs
    This class provides a virtual as well as some random stock trading and price information. Web.config automatically generated, no particular change in
    Silverlight can be produced in a multi-view before the rich, stunning visual effects and a good user interaction, but it is only a shell, the need for data to fill, no doubt, asp.net and ajax is a variety of ways to get data from the server, the most a good way.

Similar Threads

  1. Replies: 5
    Last Post: 20-04-2011, 10:16 AM
  2. SilverLight 4 applications working very slow in MAC OS
    By Sosie in forum Windows Software
    Replies: 3
    Last Post: 18-04-2011, 07:39 PM
  3. How to insert two Silverlight applications within an HTML page
    By Gokul20 in forum Software Development
    Replies: 5
    Last Post: 07-08-2010, 01:57 AM
  4. Replies: 4
    Last Post: 03-08-2010, 03:39 AM
  5. Replies: 3
    Last Post: 28-07-2009, 09:15 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,928,717.14138 seconds with 17 queries