I am new to ASP.NET Single Page Application (SPA) using Backbone.js and Marionette.js
Can anybody provide a solid code example with explanation to get started with Visual Studio 2012
Actually, I need a working example in VS2012 using ASP.NET SPA(MVC4) + Backbone.js and Marionette.js instead Knockout.js
here is one which I liked the most so far:
http://blog.patrickmriley.net/2013/06/mvc4-marionette-todomvc-template.html?showComment=1375253174438#c3265360992803109932
but still no code explanation.
Any help will be highly appreciated.
Thanks
https://github.com/saqibshakil/SPA-Sample-App
this is my project on GitHub, it does not use MVC4 instead it uses WCF JSON service. But the service is detachable. Implemented using marionette and and a host of other open source library.
Support IE8 onwards. IE7 support just needs the inclusion of JSON2 library
Related
Is it possible to create new razor view pages after you have compiled and published the app? For example:
A function that runs a cli command like dotnet new page or dotnet new view?
Trying to create an application that will have a web gui that will allow for the creation of new pages. I can do this with scripting languages, but I'm unfamiliar with how to do this in asp.net core. Any suggestions will be greatly appreciated.
It possible, but we don't suggest you do such things.
As far as I know, asp.net core is build based on C# and is a compile language. We don't suggest you compile and publish it at server side.
As you know after you use the command, you need to have some permission for this application and the backend code logic may have more permission, it will caused a lot of security problem.
If you want to create a new page, I suggest you could consider using the Js and html page to do the same things.
I made a blazor server-side project for submitting the form.
In spite of there is a tutorial of Microsoft about how to embed it in asp.net core(https://learn.microsoft.com/en-us/aspnet/core/blazor/components/integrate-components?view=aspnetcore-3.1). However, I am about to embed it not only in one website but also in some other. So this way is so troublesome.
There is another way by using Iframe. Whereas Iframe does not support CSS vh units well and it has some other limited(such as samesite attribute/cross-origin).
Is there any way to solve this? Thank you.
I suggest you could consider build it as an Templated components.
You could create a component library. And then you could use this template in each project.
Details, you could refer to this article.
I'm trying to save a text to Audio file in my web app developed in ASP.NET Core 2.0.
I'm trying to find the support for the System.Speech, but the namespace seems not available in .NET Core.
Can anyone give me any alternate class libraries to save a text to audio file (MP3).
I found some ScriptCs code samples but they are not working for me.
Does anyone has any suggestions?
Not sure if this is an option for you, but you could set your ASP.NET Core app to target the .NET Framework.
Edit yourapp.csproj and change:
<TargetFramework>netcoreapp2.2</TargetFramework>
to
<TargetFramework>net472</TargetFramework>
Now you should be able to add the reference to System.Speech and do something like:
System.Speech.Synthesis.SpeechSynthesizer synth = new System.Speech.Synthesis.SpeechSynthesizer();
synth.SetOutputToDefaultAudioDevice();
synth.Speak("Your awesome web site is starting!!");
Another cool way to get this done would be to use some on-line API, such as Azure Speech Services (text-to-speech) that is pretty much platform independent and provides plenty of configuration options (https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/text-to-speech).
Hello EveryOne I'm New To Umbraco I did Some Simple Umbraco Sites and Im good with so far Based on my Humble .Net background My Question is : How can i Remotely Change the Content of My umbraco form Other Pc or Something like that using Web service or APIs or what ever Im Looking foreword For a Good answer
Thanks In Advance
Depending on your needs, you can create a webapi on top of your Umbraco instance. You'll have to implement the actions yourself.
See this reference on how to implement it
Another option is installing Umbraco Rest API. This will add functionality for managing content and media through a rest service. Haven't tried this plugin myself, so no clue if works in the current version.
Some additional information can be found here
I am using MVC4's WEB API to expose a controller.
Initially I created created a MVC4 WEBAPI project, set the project not to open any web page, wait for an external app to call the URL (WEB API). The project in VS2010 is set to run from IIS7 Express, not VS2010's Dev Server. This works OK, the browser prompts me to down load a file. Which is OK for me, as the browser does not know what to do with the returned data (RAW TEXT).
Next, I created an AREA in the MVC4 project area, then added a controller (WEB API type).
Then I once again ran the project and in a browser entered the the URL (WEB API). And it fails.
Ed.
The DefaultHttpControllerFactory doesn't work with Areas by default. To get this functionality you have to write your custom HttpControllerFactory.
You can find how to do this at the post How to create HttpControllerFactory to support Areas
While it is possible to place WebApi Controllers in different Areas, ASP.NET MVC 4 RC will still treat these ApiControllers as if they all reside in the same namespace. This is a limitation of the DefaultHttpControllerSelector, which is responsible for selecting the appropriate ApiController.
Fortunately, you can inject your own implementation of this class. In fact, I've already encountered this very issue and written an "area aware" HttpControllerSelector. You can find a blog post of mine about this issue and its solution here:
http://blogs.infosupport.com/asp-net-mvc-4-rc-getting-webapi-and-areas-to-play-nicely/