Episode 17 of the Coder's Block podcast out now
asp.net
Taking A Look At ASP.NET Core
Taking A Look At ASP.NET Core

One of the biggest things to come from Microsoft recently, for developers, is .NET core, which is a lightweight, multi-platform framework for creating web services on Windows, Linux, and Mac. And not just multi-platform, but cross-platform as well. So we can create universal apps that target all 3 of the major platforms currently. Which means more collaboration and less restrictions overall when developing new projects.

Continue reading
Starting Out With ASP.NET MVC Part 3
Starting Out With ASP.NET MVC Part 3

Welcome to part 3 of my starting off with MVC tutorial. In this post I will be mainly going over Data Annotations. You can check out part 1 where I cover starting a brand new project from scratch. Or if you're above that level, part 2 where I cover Models and the Entity Framework.

Continue reading
Starting Out With ASP.NET MVC Part 2
Starting Out With ASP.NET MVC Part 2

Last time I left off with ASP.NET MVC, I covered how to create a new MVC project in Visual Studio and how to add new Controllers and Views. I was able to show how to pass data to the View from the Controller using the ViewBag and how to render Views from the Controller. I covered the VC part and purposely left out the M, the Model. So in this post, I am going to be adding a Model to the project and I will be using the Entity Framework as the ORM in order to access the data. I'm not a huge fan of the Entity Framework, mainly because it ties the code and the data too closely together, and sometimes with complex queries, you end up with super complex expressions in your cod

Continue reading
Starting Out With ASP.NET MVC Part 1
Starting Out With ASP.NET MVC Part 1

One of my weaknesses in programming is actively using MVC in my projects. Particularly ASP.NET MVC, since I am a .NET Developer. Most of the jobs that I've had have not required MVC and as far as my personal work goes, I've spent a good bit of time working on my own framework throughout the years, and it doesn't make sense to me to start over. But MVC is becoming more prevalent and more and more companies are jumping on that wagon, so it's time to revisit it once again.

Continue reading
Creating An XML Document in ASP.NET
Creating An XML Document in ASP.NET

There are various different approaches to XML document creation in .NET. There is no right or wrong way really, it just depends on the situation and what you're more comfortable with. You need to generate an XML file in an hour? Then have it and glue together your data manually in XML and save it into a file with a .xml extension. You need a reusable and scalable XML generation tool? Then you can use a more programmatic approach to the problem. Lucky for us the .NET Framework can help us out with whatever approach we want to take.

Continue reading
Implementing DLL's For Your ASP.NET Site
Implementing DLL's For Your ASP.NET Site

Code re-use is at the heart of any good developer and it is a very welcomed ally when the time arrives. The last thing you want to do when working on a project is to find yourself making a small change and then having to deploy it across a dozen different pages. Write once, use everywhere. By defining our own DLL's with our custom generalized code we can keep all of our most commonly used code in a single project and then deploy it across all of our other projects.

Continue reading
Adding Controls Programmatically In ASP.NET

The beauty of working on .NET web forms is that every control that you see on the screen is an object of some kind, inheriting from the base Object. Which means that we have the liberty of working with them in all kinds of ways. We can drag them onto the designer, or position them manually (as I'm assuming every single person does), and if the need arise we can also add then programmatically to our web pages. Say for example that the fields we collect for a user table such as name, lastname, email, etc all come from a database table. In this case, if we ever needed to collect more information, we'd simply just add a record to our database. So we have to create these controls on the fly when the page loads. I'll document the process in the way that I learned it the first time I tried it out.

Continue reading
How To Dynamically Add Meta Data To Your ASP.NET Pages
How To Dynamically Add Meta Data To Your ASP.NET Pages

Meta descriptions and keywords help search engines figure out what your web pages are about. And while it is highly contended as to whether this does in fact help your website appear more often in search results, it's better to just have your data as parser friendly as possible. This is just one of the things that Google and other search engines use in order to create your web pages search result descriptions. The little small snippet that appears under your sites link. That one. And unless you want your site to appear like the following:

Continue reading
How To Dynamically Create Your SiteMap In ASP.NET
How To Dynamically Create Your SiteMap In ASP.NET

Recently I logged into Google Webmaster Tools and realized that my sitemap for one of my websites had not been updated since I first launched that project years ago. More than likely I launched the site, went to a sitemap generation website, and downloaded the results and left it at that. And while that's perfectly alright, it isn't the most ideal way of handling sitemaps. For one, it'll usually be in a different format than what you might want. Some of the sitemap properties might not come out the way you want them also. And if you have a big website, it's going to take a while for those crawlers to hit every page, potentially leaving some out even.

Continue reading
How To Make Ajax Calls In ASP.NET Using Web Services
How To Make Ajax Calls In ASP.NET Using Web Services
  1. Using the ScriptManager
  2. Creating A WebService
  3. Making a Call To A WebService
  4. Returning Data To Caller
  5. Quick Recap and Summary

Ajax has become common place in almost all websites. Users get a faster web experience, at the cost of a slight bit of complexity to the developer. But it's the users who make the site and not the other way around, so it's totally a good route to take at times. There's tons of different ways to make AJAX requests in ASP.NET, and I'll be covering just one of them here today. It's probably one of the fastest ways to do it, and great if you're in a bit of a time crunch or new to this whole AJAX world. This post will assume that you already know the basics about AJAX, so I'll skip the preliminaries and get right to the fun stuff. I'm using Visual Studio 2013 for all of the screenshots and examples. I created a default test project so everything is right out of the box.

Continue reading
Load older
Guest Posts

About Me

Walter G.
Walter Guevara
Walter G. is a software engineer with over 10 years of professional experience. When he isn't blogging or being a CTO he enjoys coding randomly complex things that he hopes many people will get a chance to use one day.
Podcast

Classic Snake High Scores

1. TSD
43
2. wag
41
3. BT
15
Start
Score: 0
snake left
snake up
snake down
snake right