I haven't worked with MVC3 that much - as it was just released, but I was wondering if there was some kind of conversion tool - to convert exisiting Views / Forms into the newer up-to-date "Razor" view engine.
I'm not sure if it is possible but I just thought this would be the place to ask...
Thanks!
I recently read on Dave Hayden's blog this morning about Telerik releasing a Razor View Conversion tool. I believe they used it to convert all of their demos on their site from all of their existing WebForm view to the new Razor View engine.
Here is Dave's short blurb regarding the tool and if you want to play around with it yourself, it is available on Github using the following link:
Github - Telerik Razor Conversion Tool
Hope this helps you out (I haven't had the chance to play around with it much - but knowing Telerik, it's probably pretty decent.)
Given that Asp.net webforms works well for simple pages and there is no point in moving to MVC for the sake of it. I don't think a converter will do a good job, as:
your pages are complex
and/or you wish to do unit testing - so need to redesign
or you are moving for the sake of it (way?)
Related
I have an ASP.Net Core 5.0 web application that I need to detect mobile devices for. I downloaded the 51 Degrees NuGet Package using the Visual Studio Nuget Package Manager, but I cannot figure out how to use it from a Razor Page and cannot find any examples of it being used with Razor Pages anywhere.
So far it looks like the best example I can find is at https://51degrees.com/developers/documentation/apis/netv32/tutorials/getting-started but it says "This tutorial assumes you are building this from within the 51Degrees Visual Studio solution." Like most people I already have a solution for my app which I need to use 51 Degrees with and cannot create a new 51Degrees Visual Studio solution. Plus, the example has way more code than I want to use. I want something that works like Request.Browser.IsMobileDevice without requiring more work.
Hi #WannabePuppetMaster,
51Degrees Device Detection solution can be used in similar manner as with AspNet MVC as described in this example.
The main difference is where the Device Data is obtained and made available to a Page. In MVC, the data is obtained in the Controller before passing to the View, while in Razor Page it will need to be obtained in the Page Model so that the Page can access it via the Model object.
You can find more details in this comment with examples.
You can find more examples (in various languages) and information from the documentation. For .NET specific details, please see Language Specific section.
Aside from some simple introductory tutorials and messing around with the default template, this is my first ever ASP.NET app and I'm a bit overwhelmed with all of the configurations, folders, features. I want to add the jquery terminal found here
https://terminal.jcubic.pl/
to one of my html pages, however the instructions on how to do that aren't very helpful. Where do I even unzip / install it once it's downloaded? And once that's in the right place, how do I reference it / include it in an html page? Does it need to go in a bundle? Any help would be much appreciated.
I want to know if there is a free alternative to display Visio diagram (.vds file) in webforms asp.net C#?
Thanks in advance.
To my knowledge, the only way to go is using ActiveX, but if you decide to go down that path, do know that it's supported only by Internet Explorer, and since that one is going to the grave rather quickly I'd say you'll give yourself some headache quite quickly.
There's no pure HTML5/ASP.NET WebForms solutions for this as per today.
I am currently doing an mvc3 razor project and I need some charts.
I will need to blend bars and lines in a single chart or/and have multiple dataseries.
I was just wondering which charts you guys use. Price is a factor but I would like to hear some real world usage before trying out to many of the thousands of the charts available.
We're currently using Google Chart Tools. It uses HTML5/SVG technology (adopting VML for old IE versions) so it's all rendered on the browser. The JavaScript API is really powerful yet pretty simple to understand and very flexible allowing you to customize almost everything from the data to the presentation. Because it's all rendered in browser it also offers very nice and clean animations on mouse-over and mouse-click.
You've detailed documentation for each type of chart.
Check the default charts here. Also available are the Additional Charts which are compliant with DataTable protocol (a way to represent charts data through JavaScript) and are somehow approved by Google.
It's free!
I've used HighCharts before and find the API very nice to use, also as its essentially a Jquery plugin using a JSON result in your Razor view would integrate nicely.
You can use the ASP.Net chart controls in an MVC Razor project, although not quite as easily as it is in .aspx pages.
See Charts in ASP.Net MVC 2 With Drill-Down! for an example using .aspx syntax that can easily be converted to Razor syntax.
I am building a custom Content Management System for my client, using C#2008, ASP.Net technology. I am looking for advice regarding the architecture (application layout, database layout etc) of such a system.
Anyone here have any experience design / developing such a system? Any websites that I can get more information from?
Any open source CMS out there?
Thanks in advance.
Any open source CMS out there?
Check out Umbraco, its very good, not suitable for everything (depends on your sites content really) but you get so much for free that it would be silly to not give it a look over, its not a small bedroom hack up job.
Regarding creating your own CMS, I'd probably try to steer you away from it, its not for the faint of heart unless your content demands are very niche. Even then its better to build on top of something else if at all possible.
ASP.net MVC would be worth a look too if you are going down that code your own route, would save you some headaches.
DotNetNuke is a good open source CMS is specifically for ASP.NET development. Definitely worth a look.
I've written a blog post about content modeling and data stores for content management systems. I think it could be useful: Blog post: Get more out of your content: content modeling and data stores