As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have to develop an ASP.NET MVC3 application in C# and Razor that has to gather data from a database, elaborate them and, according to the user's preference, display a graph based on user's preferences.
For instance the user might want daily figures or monthly, he wants it in a histogram rather than a cake graph.
I was wondering how can draw a graph in ASP.NET and even decide which kind of graph, etc. I guess they haven't created helpers for these tasks yet.
You have a couple of options:
1. Create your own charting control
Start from scratch or build upon MVC 3's ChartHelper web helper to build your own charts.
2. Use an 'off the shelf' component
Telerik make a great set of controls for ASP.NET MVC, including a chart. Take a look at their demonstrations to see if it fits your needs.
Well, here are a few suggestions for you -
Open flash charts, Google charts, or you can refer to the following question. There are a few suggestions too.
I personally would go for a solution using http://www.jqplot.com/, a jquery plugin that allows you to create all kinds of graph (really, they have lots of them) basing on raw data. Your backend then has to just produce the data, and the drawing is done by the javascript. for examples see http://www.jqplot.com/tests/pie-donut-charts.php
I would take a look at a third party tool to get this done for you. I have used Telerik's MVC extensions in the past and had good luck with them. Depending on your licensing requirements, there is a free or pay version.
There are ChartHelpers in MVC3
Check this:
http://weblogs.asp.net/jalpeshpvadgama/archive/2011/08/30/chart-helpers-in-asp-net-mvc3.aspx
There are many ways to skin this cat, but one good option is using the Telerik MVC Chart extension.
You could try one of the following C# libraries written to make it simpler to integrate Highcharts into ASP .Net
Highcharts.Net (sample project)
DotNet.Highcharts
I've used HighCharts before. This is a javascript charting library, but its easy to configure.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I work at a small startup as a Data Scientist, and I'm looking for ways to make my analysis a bit more visible/useful to the organization. I'd like to be able to put up a simple web service which allows internal users to run my scripts remotely. They should be able to input a few parameters via a very simple UI, and they should have the option to have the results appear in the browser window (after a possibly long wait), or have them emailed. Results may be a few pdf figures, and they may be Excel spreadsheets (maybe more exotic in the future, but this is it for now).
The scripts are going to be all in Python, which will handle the analysis.
So, I'd like to know what the pros and cons are of using C#/WCF vs. something like Django or Python. I have significant experience in C# working in the Client-side code base here, but I have much less experience with WCF. All of my analysis work is done in Python (and R, to a lesser extent). The main goal is to not take all of my time building a fancy web service/UI---the front end just has to be friendly enough to not intimidate the marketing people. I don't have to worry about encryption, the server will be behind our firewall. I'm pretty platform agnostic, but I think the servers are all Windows based, if this helps.
Thanks in advance.
For extra credit, how does your answer change if some of my scripts are in F#?
You might consider using the Django web framework. You could set up a small app with your python scripts as different views. https://www.djangoproject.com/
And if you don't want to put that much effort into creating a friendly UI you could use twitter bootstrap. http://twitter.github.com/bootstrap/
Then just run the app internally to gather and display data either via HTTP GETs or via e-mail.
edit: I'm sorry I did not read carefully "pros and cons are of using C#/WCF vs. something like Django". I recently made a Django app and it was fairly straight forward.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I know my way around the basics of KnockoutJS, and i can easily make a single page really dynamic... But i am to build a new web application, and i'm looking for advise on how to make making the entire webapplication dynamic where every viewModel and html-template is loaded dynamicly, with no full page requests, but the URL should still indicate what page i am on, eather with a hashtag followed by a path, or something better?
I'm a bit confused:
Is there some framework that plays nice with knockoutJs that helps
achive this?
Can i achive this without worring about KnockoutJS?
Is it just a matter of tweaking the viewModel to dynamicly load and dispose other viewModels
and templates, in a smart way?
What is the best practis, what do i do?
Any pointers, links or tips on this is much appreciated, thanks!
Here is an example, notice how the URL changes, and the new content animates in, how do they do it?
https://www.pokki.com/app/Little-Alchemy
Btw. I use ASP.Net MVC.
There are a few things you are asking for here.
Routing framework
External templates.
There's a simple plugin to help you with the latter: Knockout.js External Template Engine
For the former, there are some routing frameworks available that play nicely with KO. You still generally need to do something with the fetching/creation/disposal of child ViewModels. The routing framework may help you with this, or it may just handle monitoring the events that would normally cause a navigation, and call functions that you supply.
I'd like to see a full drop-in routing framework that allows for more declarative definition of url → ViewModel mapping, but haven't found anything that is truly easy as yet.
The one I have started using is called Path.js, but you still have do do a fair bit of glue code.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am getting a large website developed. The develop has asked me which do I prefer either sitefinity or umbraco. The site will be similar to wikipedia where users can come and edit pages without having to login. I would like to ask your opionions on these two csm systems and which one would you recommend for content website with a community feel and wiki features. Thanks
I disagree with #IrishChieftain's answer and would most certainly go with Umbraco!
I've built a number of websites in Umbraco (and have got my certification) and I have to say I absolutely love it!
XSLT is very easy to learn unless you come across some really complex functionality. But even then, you can resort to ASP.NET if you don't want to learn XSLT.
If it's a non-commercial (charity?) site, you may be able to obtain the community version of Sitefinity for free if you display their logo in the footer. Sitefinity has a lot to offer, including an ORM.
Umbraco on the other hand has, for me personally, an unhealthy reliance on XSLT to customize the content. That was the main reason I didn't go with it.
I would go for Sitefinity or N2 for this.
Contrary to what others have suggested, I find the use of XSLT in Umbraco advantageous on numerous levels. In particular the time it takes to make changes and see their results is very quick. Just create transform and put a macro in your page and you can see the results. You get access to all the site data as necessary directly in the transform. Also, the fact that you are just working in HTML within the XSL transform means that it would be easy for a non .NET web developer to make changes too. I've found that although this is a .NET based CMS there is little reason to perform anything in code so you only really have to have open the CMS and your favourite text editor (I'd suggest using a text editor and accessing static files this way (through FTP or whatever if you're not logged in to the machine the CMS is on) rather than through the CMS interface.
If you're looking for a CMS for a large website and with wiki features, look at Kentico CMS. It was designed for large number of documents and it's the most advanced .NET CMS I have seen.
It has a built-in user-contribution module that allows public users to create new content items from the live site and you can control who can do that (all/authenticated/selected roles) and what type of content items (news/pages/knowledge base articles) they can create. Kentico has a free version, but for this type of functionality, you would need a paid license. Still, if it meets your needs for user contributed content, it may pay for itself very quickly since AFAIK no other .NET CMS has this built-in.
Umbraco was possibly the worst CMS a few years back when it was in version 2. Things have changed though and, for me, it jumped to the top of the list when it hit version 4. I find Umbraco to be the easiest CMS to manage and develop in. The XSLT is probably the hardest thing to get used to here, but like others mentioned it isn't a show stopper because you can still do everything using Umbraco data access layer. The one thing i absolutely love about it is how easy it is for the end user. The UI is very intuitive and easy to grasp. The only downside i see with Umbraco is bugs and there are a whole lot of them even in version 4 releases. Most of them are UI bugs. However, some do affect advanced features such as packages. I would still go with Umbraco if i had to pick a choose a CMS for a project of any size.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I am starting my first software engineering job in a week and wanted to sharpen my skills up. I'm looking for someone to suggest a good week long, web application project that can help me sharpen up my C#, Javascipt, and JQuery.
Thanks!
Brandon
Edit: As noted below this is a pretty broad question. Let me give a little more background. I am a strong programmer, but an entry level one. My experience as an intern for a year gave me glimpses into a number of the .Net and C# technologies, but what I have never done was put them all together into an inclusive project. I'm looking for a project idea that will have me setting up both client and server side code (purely for practice) that will provide me better insight into how each piece of the puzzle fits together.
write a blog engine. its useful, easy, and has bounded, easily understood requirements.
You could start with one of the ASP.NET Starter Kits and build upon it.
Being that you have C# experience, I highly recommend trying Asp.Net MVC as I feel it is the future of MS Web programming (I am not alone in this opinion... though it is just an opinion).
If nothing else, the MVC (model-view-controller) organization is a well established and useful method of coding that is used accross all sorts of platforms like php, ruby on rails, etc. - not as much of an 'island' like Asp.Net WebForms (Asp.Net WebForms are still great).
There are all sorts of great tutorials, the most famous being Nerd Dinner
You might also want to check out the materials available under the jquery tag on Channel9. There is a great video from PDC2008 that talks about ASP.NET and jQuery and another jQuery for the ASP.NET Developer presentation from DevDays 2010.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I'm looking to create a dashboard type gui for a web application. I'm looking for the user to be able to drag and drop different elements (probably either image buttons, anchor tags, or maybe just divs) to different (defined) places and be able to save their setup (in a cookie or on the server). I'm working with c# in the .Net 2.0 framework. I've tried using mootools but their recent update has left their drag/drop capabilities un-useful for me. I'm looking for a bit of direction because I know there is something out there that is just what I'm looking for so I wont have to build from scratch.
Thanks.
I have been looking at this kind of functionality myself recently and have decided on using jQuery with the help of jQuery UI. I came across a large amount of information that also suggested Yahoo UI (YUI), I had already started learning jQuery due to the AJAX support that it offers, so I stuck with it.
jQuery UI Site
jQuery UI Documentation
Example of a drag and drop screen layout with jQuery UI
Introduction to jQuery UI
If you decide to use the YUI javascript library, here is a link to a vast amount of videos to help get you started.
http://developer.yahoo.com/yui/theater/
If you still want to give MooTools a second chance, I'd recommend taking a look at Mocha UI.
I prefer using jQuery for AJAXy stuff like that. It also has a lot of very good plugins that make writing client-side code very easy.
Here is the plugin page specifically for Drag-n-Drop.
http://plugins.jquery.com/project/Plugins/category/45
Ajax callback are also very easy so saving the setup should be fairly easy as well.
I used the Microsoft ASP.Net Ajax and AjaxControlToolkit to do something like this. They have a ResizeableControl and a DragPanel. I used these, then hosted an IFrame inside the panel to display the content.
Worked pretty well.
This site:
http://www.asp.net/learn/videos/default.aspx?tabid=63#ajax
Has lots of tutorial videos that show you how to get started using the controls.
You might want to look at DropThings on Codeplex.