Simple MVC AJAX GET Method

MVC makes doing AJAX calls simple.  As I have said before, I do not like the AJAX controls and methods that the Microsoft ships with the MVC platform.  I prefer to create my own AJAX methods instead of posting a AJAX form.  I find I can get better control and I can create tighter rules around elements of importance.

The one thing I learned early is when doing a Get Method, you need to ensure that you give permission to the AJAX call to return JSON by adding the following to your JSON return object:

JsonRequestBehavior.AllowGet

This is an easy example of how to use your basic jQuery with your MVC Controller.

Continue reading Simple MVC AJAX GET Method

Using FitBit as a Software Developer

Confession: I am a Software Developer and I do not move much.

My wife had gotten a FitBit and was loyally using it. She offered to let me where it for a day which I did not do, but rather I told her that I am pretty certain I walk at least 10,000 steps a day easily ( FitBit suggested target ). She had purchased one for me and boy was it an eye opener; I was very immobile. In a given day I was lucky to get between 3,000 and 4,000 steps in a day and that is while walking two blocks to the car. Continue reading Using FitBit as a Software Developer

Joined the Dark Side and Loving It

A while back now I had a friendly debate with a colleague. It began innocently in a pub on a Friday night and it was Web Forms vrs MVC in the DotNet framework. I was anti-MVC for various reasons and in some sense I could still make an argument against MVC. We escalated our debate to a more public forum where we took the topic to the masses and presented our two sides. We created the exact same projects in our chosen DotNet platforms ( me in Web Forms and he was in MVC ) and we presented the projects. We talked about what we thought were the plus sides of what we chose and why. Before the debate I posted a question on LinkedIn for feedback and the feedback seemed positive for Web Forms. At the end of the debate, we asked our audience to make a choice based on their experience and what they had seen and Web Forms won.
Continue reading Joined the Dark Side and Loving It

Which Web Tools – When and How Much

I cannot say enough about learning which tools use when. It is only through experience will you ever learn this discipline. I have learned when to use a handful of tools and how often. I have also learned that sometimes there is overhead that can make your projects bloated; therefore, I often create my own ( although some may argue against it).
Continue reading Which Web Tools – When and How Much

Simple JS Dialog

Keeping in the spirit of using my blog as a quick code repository; sometimes you just need a simple easy to implement dialog box. I have been using the following routine for sometime now. Sometimes you just need a simple piece of code to get the project done. This although is very simple, it does the job perfectly. It is not how I often style it, but you can figure that out.

See Working Copy: view & try Continue reading Simple JS Dialog

HTML to PDF

Have you ever wanted a function to convert HTML to PDF? It is really easy. A good use of this is when you have a resume on your website and you want to create a download of it as a PDF. Mind you; you will have to properly format your resume so it looks good in both cases. Not the easiest job, but totally worth while to have a resume download created on demand. Continue reading HTML to PDF

Have an Idea – Let Us Talk

Do you have an idea? Let us talk!

Many people have ideas for a website, blog, forum or new software to make their life and business processes better. Often, people do not know who to contact or how to go about getting their ideas accomplished. Sometimes, people are afraid that by telling someone their ideas, someone may steal the idea. Everyone needs someone to help them and to trust with their ideas.
Continue reading Have an Idea – Let Us Talk

The Story of C# Meeting AngularJS

Most of you already know that I still like my WebForms. People have argued that using AngularJS with WebForms is pointless, but I say NA! It makes the user experience a little bit smoother.

In this blog I will show you how to create a table that can be sorted and paged using AngularJS. I chose not to use a webserivce as I did not feel like this warranted the extra overhead and code. I wanted to keep this absolutely simple. I would have used a webserivce had I been creating an API for others to use. This is also a project that is ultimately using WebForms, had I been doing an MVC project; webservices would have been a better choice.

Is this the best way; probably not! This is my first run with this, so I am doing it the way I know and the way I find the easiest to manipulate for my purpose.
Continue reading The Story of C# Meeting AngularJS