I have created a Silverlight application now I want to embed it into my aspx page. Is there any video tutorial for this, which explains how to integrate silverlight in aspx page?
In your web project, make sure you've included a reference to the silverlight application so the .xap file will be in the clientbin folder.
Right-click on your web project and select Properties. Select the Silverlight Applications tab on the left. Click the Add... button and select your existing Silverlight project. Also, check the box that says, "Add a test page that references the control" and VS will include a new .ASPX page that will have the code to reference the Silverlight control.
Note: this assumes the silverlight project and the web project are in the same solution. I assume they are..
Here is an example of how a chart control can be embedded in an aspx page:
http://demos.telerik.com/aspnet-ajax/chart/examples/silverlight/defaultcs.aspx
Related
I want to build web application for a college in Microsoft Asp.net 3.5 framework which i have actions to database and login controls for each of the college members,but i feel working without master page in it for the web application. Is it possible ?Can you Please Specify
Yes, it's possible. Right click on your project, select Add > Add New Item > Web Form
Web Form does not use a master page while the "Web Form with Master Page" option does.
I have asp.net mvc project with razor views and i have in the same solution another project that is rendering (aspx) pages (reports and stuff) so i don't know how to call that page or show it inside view. i have tryed with render action and link but it just can't be found.
It's just one aspx page inside other project so i have path like: /projectName/page.aspx
Any help would save my day
If you have two web projects I suppose they have two iis mapping.
So calling from a site to another site you use href link, to render a page from another site the only thing I can think of is using iframe.
I want a aspx page that has Silverlight page embed in it, so that if I click any button in aspx page some text will be printed in the text box of Silverlight page.
for this what type of Silverlight template should we choose that are in Visual Studio 2010 and I am using Silverlight 4.
Please provide me step by step procedure for embedding Silverlight into aspx page.
Please friends help me and I am thankful for the answer.
Thanks in Advance
Ganesh
You can embed Silverlight component into asp.net web page via HTML <object> element or JavaScript - Silverlight.js helper script.
For more information read:
Integrating Silverlight with a Web Page
Encapsulate Silverlight with ASP.NET Controls
I created simple Silverlight Application using the web site host of the VS2010 ( default ) feature.
Now, I want to make the Silverlight Application to be shown as light window in the front of the default web site.
How can i do it ?
You can go OoB.
If you just wanted to show a modal dialog, then use the ChildWindow or MessageBox.
I think you could also remove the website from your solution and the Silverlight project will still open in the browser.
I am not so sure about what you mean by "Light Window", but I am sure these links will help you a lot:
Integrating Silverlight with a Web Page
How to: Add Silverlight to a Web Page by Using HTML
Update
If you checkout the web-host project, you'll see, that there is a test page that actually hosts the Silverlight project.
You can modify this page and move the Silverlight content around wherever necessary, or you might even embed it in a master page and/or use an external ASP.NET UserControl that will be used to load/host the Silverlight object dynamically.
I have a silverlight application project that I need to add to an ASP.NET Project. I know it can be done because you can choose to have both when you first create a silverlight project, i'm just not sure how you would do it after the fact. Any Ideas?
First of all Add a new website to your Silverlight application(if there are now ASP.NET website in your solution), by Right-clicking on the ProjectSolution >Add>New Website.
Now Rightclick on the ASP.NET website and Click Proporties.Now Click on the Silverlight Applications Tab. Now click on Add , and select Use an existing Project in the solution. Now You wil be able to see the Silverlight Applications name .Now Click on Add again to add the silverlight application to ASP.NET website.
After that , Set the ASP.NET website as Startup Project and ..TestPage.aspx as the Start Page.
Just add the web application to your solution and go to your web project properties and under silverlight tab add your sl app