How to link silverlight application created using Blend in asp.net using vs2008?
-
Hi, I have created login and registration silverlight application using blend June Preview 2008. I would like to ask how to I link this two application in asp.net using visual studio 2008. For example, I create an asp.net website and I would like to add the login and registration silverlight apllication in this website.When I click on the navigation link which created using asp.net such as login button, then the page will show the login silverlight application and it same to the registration as well. Hence, how can I do for that?? Thanks. Regards. Katelva
-
Hi, I have created login and registration silverlight application using blend June Preview 2008. I would like to ask how to I link this two application in asp.net using visual studio 2008. For example, I create an asp.net website and I would like to add the login and registration silverlight apllication in this website.When I click on the navigation link which created using asp.net such as login button, then the page will show the login silverlight application and it same to the registration as well. Hence, how can I do for that?? Thanks. Regards. Katelva
Hello Katelva, Actually, you can have login and registration in single Silverlight application. You can use them as the controls in Silverlight. What you should do is that. 1) Go to VS 2008. 2) Create Silverlight Application with Web project (not with the generated Html) 3) Add one Silverlight control and name it as "LoginControl" 4) Add another Silverlight control and name it as "RegistrationControl" 5) Right-click on one of those XAML files and select "Open in Expression Blend" (then, you can customize the XAML as you like in Blend and save it and close the blend. ) 6) Create the navigation in Page.xaml. 7) Run the application. (ASP.NET and Silverlight will be linked automatically and Silverlight control will be shown on aspx page. ) Hope it helps.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
Hello Katelva, Actually, you can have login and registration in single Silverlight application. You can use them as the controls in Silverlight. What you should do is that. 1) Go to VS 2008. 2) Create Silverlight Application with Web project (not with the generated Html) 3) Add one Silverlight control and name it as "LoginControl" 4) Add another Silverlight control and name it as "RegistrationControl" 5) Right-click on one of those XAML files and select "Open in Expression Blend" (then, you can customize the XAML as you like in Blend and save it and close the blend. ) 6) Create the navigation in Page.xaml. 7) Run the application. (ASP.NET and Silverlight will be linked automatically and Silverlight control will be shown on aspx page. ) Hope it helps.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
Hi Michael, It means created the silverlight application which hosts in asp.net,am I right? Actually, I would like to do is create Asp.net website(navigation), then when I click on the link it will appear the Login form in the asp.net webform which mean the design is using css and asp.net but the content such as registration form, login form...etc is using silverlight. Can I do this way? Thanks. Regards, Katelva
-
Hi Michael, It means created the silverlight application which hosts in asp.net,am I right? Actually, I would like to do is create Asp.net website(navigation), then when I click on the link it will appear the Login form in the asp.net webform which mean the design is using css and asp.net but the content such as registration form, login form...etc is using silverlight. Can I do this way? Thanks. Regards, Katelva
katelva wrote:
It means created the silverlight application which hosts in asp.net,am I right?
Yes.
katelva wrote:
Actually, I would like to do is create Asp.net website(navigation), then when I click on the link it will appear the Login form in the asp.net webform which mean the design is using css and asp.net but the content such as registration form, login form...etc is using silverlight.
In my opinion, you should consider two things. Do you want to use Silverlight partially with ASP.NET or do you want to create full Silverlight application (e.g. Hard Rock Cafe, etc)? I will use Silverlight partially if I want to host Silverlight Game, Video/Audio Players, Silverlight Advertisements. I will use Full Silverlight Application if I want to develop RIA application. In your case, I would like to suggest you full-silverlight application instead of using silverlight partially.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
katelva wrote:
It means created the silverlight application which hosts in asp.net,am I right?
Yes.
katelva wrote:
Actually, I would like to do is create Asp.net website(navigation), then when I click on the link it will appear the Login form in the asp.net webform which mean the design is using css and asp.net but the content such as registration form, login form...etc is using silverlight.
In my opinion, you should consider two things. Do you want to use Silverlight partially with ASP.NET or do you want to create full Silverlight application (e.g. Hard Rock Cafe, etc)? I will use Silverlight partially if I want to host Silverlight Game, Video/Audio Players, Silverlight Advertisements. I will use Full Silverlight Application if I want to develop RIA application. In your case, I would like to suggest you full-silverlight application instead of using silverlight partially.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
Thanks for your suggestion. But I would like to know whether there was any difficulty connecting the data with the MySQL database or not? Actually, I am creating a store website and the client can order the products online. Because Silverlight is new Microsoft product,hence, I am not sure whether have any issue with the database connection or not? Regards, Katelva
-
Thanks for your suggestion. But I would like to know whether there was any difficulty connecting the data with the MySQL database or not? Actually, I am creating a store website and the client can order the products online. Because Silverlight is new Microsoft product,hence, I am not sure whether have any issue with the database connection or not? Regards, Katelva
Hi Katelva, Silverlight is a client-side technology which runs on the user's browser. so, you can't connect with any database directly from Silverlight. but you can create the service (i.e: ASMX webservice, WCF, ADO.NET Data Service, Java or Webservice that follows WS Basic-Profile 1.1 ) and you can connect with that web service. there are a few samples how to do CRUD (Create, Retrieve, Update, Delete) operation in Silverlight in my blog. you may want to read them.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)