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.
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.
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
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.
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.
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?
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
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.
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?
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?
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?
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
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
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?
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.
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 -
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?
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 !