MVC :: Hosting A Silverlight App In A View?
Mar 2, 2011
I have an MVC 3 app that I created an ASPX view with a Site.Master that hosts a silverlight app. I have to build some initparams to pass into the silverlight app so I have some C# sharp script that I put into the site.master page along with the javascript.
When I access the page I get an error, "The name 'BuildInitParams' does not exist in the current context". It seems it cannot find the script. Below is my code for both the master page and the aspx page. I've tried moving the script into the aspx page itself but got a totally different error that time.
[Code]....
[Code]....
View 4 Replies
Similar Messages:
Feb 15, 2011
Is there anything special I need to do to host a Silverlight app inside an MVC app? Does anyone have any sample code or is it pretty much the same as with and aspx page? I tried it but I was never able to see my app so I may be missing something.
View 1 Replies
May 29, 2010
My app consists of Home and Map pages.
Home is ASP.NET. Map is hosting Silvellight.
How can I navigate from the Silverlight Map page to Home page?
View 1 Replies
Feb 17, 2010
I have a SL 3.0 xap I want to host in a ASP.NET website, I have access to the XAP file and I have created a HTML page to host the SL component.
When I access the page all I see is a white screen where the SL component should be, SL is loaded but the component is not displayed.
This is the HTML code for the SL div.
<body>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="http://lonmw32795/SliverlightRESTfulWebservice.Web/ClientBin/SliverlightRESTfulWebservice.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="3.0.40818.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40818.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</form>
View 3 Replies
May 11, 2010
i have develop my silver light application using asp.net and i want to deploy it , i am using vs 2010 and planing to use vsweb deployment project 2010 for beta
View 1 Replies
Mar 11, 2011
(vs2010 sl4 vb.net)
When I create a default silverlight application in VS2010, I get a silverlight user control and a web site that hosts it. The object tag in the apsx page that hosts the silverlight object has its width and height set to 100%. The silverlight user control takes up all the broswer window and it also grows and shrinks properly as the browser is resized. Perfect.
If I add a master page and child page, in the child page I copy the object tag, still set at 100% height, the rendered page does not expand to fill the browser window/ I can set the object tag height to, say, 600, and it now is static at 600, but I want it to be dynamic just like when it was not hosted on a master page.
I do not believe this to be a silverlight issue, but rather a content placeholder sizing issue. I have tried a lot of diffferent ways to set the height, but nothing I do allows me to make the child page hosted object size itself based on the browser window,
Is it possile to get this to work or is this a consequence of using master pages? I can post sample code demonstrating this if needed.
EDIT: I was able to use a javascript function on window.onload to get the browser height and set the div height that contains the object tag, this works but is not dynamic. I would like it to be dynamic like the non-master page hosted object is.
View 2 Replies
Mar 4, 2011
I am new to MVC coding, and currently try to migrate a legacy ASP.NET Web Form application into MVC. In Web Form I have several user controls, for example one control will be responsible to display a tree structure and user can select category from tree and do next step. In Web Form implemenation user control just raises the event to hosting web form, from there web form takes data to do whatever it needs to do.
While in MVC, I created correspodning partial view to display category data in a tree structure, I can display it, select node of tree without problem. But how can I let the hosting page/view know that some event is raisen from the partial view? What shall be the correct concept to handle this type of requirement?
There are different pages to reuse the same partial view, for example I may have following scenarios:
A category selection partial view in a user input page to trigger the input fields (quatity, date/time) to display and submit order. A category selection partial view in an admin page to trigger the display of invoice price, listing price and so on.
View 1 Replies
May 7, 2010
This is my first silverlight Application. I am trying to use Rating Control from 3.0 Toolkit with VisualStudio 2008 Here are the problems: I am unable to see designer view after adding Rating Control and few other controls. I am not getting any errors or warnings on markup or while compiling. Trying to access Property window for any control is giving me this message " Property Editing not available". Is this the way silverlight was made available with Visual Studio or is there something I am missing here?
View 1 Replies
Jan 30, 2010
I am learning .net, c#, MSSQL, CSS, photoshop, and I didnt know if silverlight would be a good addition.
View 4 Replies
Oct 19, 2010
I was just curious has anyone set up two projects a asp.net mvc membership project and a silverlight wcf ria project in a silverlight library?? I really do not see alot of examples over the internet and I would appreciate any advice I also saw you set basic authentication to none. I know silverlight uses classic mode in iis
View 1 Replies
May 19, 2010
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.
View 2 Replies
Jun 21, 2010
I'm pretty new to Silverlight/RIA/Asp.Net thing, and I'm trying to figure if an Asp.Net website is required (for hosting the app) if I wish to use RIA services with Silverlight?
View 2 Replies
Aug 30, 2010
i am new to web development and i am learning Asp.net. i was the other day thinking and i came up with this question. i searched the web but all the answers i found were old so my question is , can silverlight4 replace Asp.net? I know this question sounds crazy . but let's think for moment we use ASP.net to talk to a server.to Create files there ,to talk to a database etc. SilverLight can do the same thing ,right? OK,you might say that if I built a web site using SilverLight then not all users out there can access it. but apparently SilverLight supports IE,FireFox Safari and googleChrome so i guess this isn't an issue anymore. so what do you think ,can silverlight replace asp.net?
View 6 Replies
Mar 17, 2011
How do I add IFrame in a Silverlight 4.0 User control ?
And I want a button on the control that refreshes the IFrame.
View 4 Replies
Aug 19, 2010
We have an app template we've created in asp.net 2.0 that we use for our web apps. It has a header that hosts a couple controls (like a drop down for customer selection) and a language dropdown. It has a footer that's pretty static. In the middle is the content portion of the masterpage. Talk has come up as to whether we can make the content piece in SL4? I'm not sure how the two pieces (apps) would communicate - like for the customer selection changed. Has anyone done anything like this?
View 1 Replies
Feb 4, 2011
i want to add subtitles to a video. eg:- a video will be playing and user will select a point on video, he will add a subtitle and save it. Now when the user again plays the video the subtitles at those points are displayed
View 1 Replies
Feb 6, 2011
which is future of web technology of microsoft silverlight or mvc asp.net i am really confused iam good in asp.net but completely unaware with silvelight and mvc
View 1 Replies
Oct 13, 2010
Wcf Hosting Please Give the Solution.and Give samples .And AlsoConsume Wcf in Silverlight application
View 4 Replies
Apr 4, 2011
I'm a C# programmer and I love the language. I think it's the best thing since sliced bread. Recently I have become real interested in creating a website that offers jobs and allows companies to post jobs for people to navigate through.
This is going to be a nationwide site only, no international connections.
I'm somewhat familiar with ASP.NET (I've used it before for a much smaller pet project) but I wouldn't say I'm more than a
Newb - Journeyman - Novice -
Experienced - Expert
I have absolutely zero experience hosting a website or even registering a domain. I'm familiar with HTML and making applications in XAML for WPF has given me a much easier time understand things that laid out in markup.
Is ASP.NET hosting expensive? Is PHP cheaper? Should I use ASP.NET or PHP?
View 7 Replies
Sep 27, 2010
Is it possible to host an ASP.net (MVC in particular, but I'm not sure if that's important) application from a self-hosted WCF service? I don't want to get into IIS, and I'd like to avoid something like Cassini if possible.
View 2 Replies
Jun 2, 2010
We have develop one application in silverlight..
We want more information about how we can use this silverlight application on IPHONE.
Basic requirement is silverlight application should work on IPHONE.
View 10 Replies
Sep 13, 2010
I have an aspx page which has a ASP.NET 4 menu control (rendered as ul/li's instead of tables) and a div right below it which contains a Silverlight .xap. When the user selects a menu item in the menu control, the Silverlight app gets updated. In IE 7 & 8, when I hover over the menu, the menu items are "hidden" behind the Silverlight and I can partially see only the first child item. However, the menu appears just fine in Firefox. I thought something in my CSS caused it and I removed all CSS references but it still stays hidden behind the Silverlight app. How do I bring the menu control to the front?Here's my menu -
<asp:Menu ID="mnuReports" runat="server" Orientation="Horizontal" OnMenuItemClick="mnuReports_MenuItemClick"
BackColor="#DDDDDD" ForeColor="#000000" StaticSubMenuIndent="10px" MaximumDynamicDisplayLevels="1"
StaticEnableDefaultPopOutImage="False"> [code]...
View 1 Replies
Aug 25, 2010
Both VS200 and IIS are in my local machine. Suppose they have the same permission. I create a silverlight4 w/ wcf ria service project. The project runs well in VS2010 built-in ASP.Net development server. It doesn't work well after i publish it to IIS. I only can see its static content but not the .svc. i try to browse the .svc, it always show HTTP 500 error. I doubt if i do not open the asp.net runtime setting sth in IIS?
View 1 Replies
Aug 6, 2010
How do yo play a video with silverlight?
does Visual Studio come with a video player component build in? or do I need to make a video player?
View 2 Replies
Feb 14, 2010
At the moment I am starting to learn Silverlight. I have expriences in ASP.NET and like the concepts of "Masterpages. Does Silverlight provides a similar concept ? I have read a little bit about the Silverlight Navigation Framework. Is this a good replacement for "Masterpages" ?
Makes it sense to combine ASP.NET and HTML (with Javascript) with Silverlight or is it more recommandable to design and write pure Silverlight applications ? Mybe in the ner future I will start to develop an intranet (business) application which will have many and complex user interaction (it should behave like a windows client applicion). I think Silverlight is the better choice than ASP.NET !? Makes it sense also to start to use/learn the WCF RIA Services immediatly ? Are there good (VS) templates to start with Silverlight or which are a good basis / starting point for a new Silverlight application ? Unfortunately I am missing "Starter kits" on [URL] like the starter kits on www.asp.net !
View 3 Replies