Mikesdotnetting

Stories kicked by Mikesdotnetting

WebMatrix - Working With The JSON Helpers(www.mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 1 year, 7 months ago

Javascript Object Notation (JSON) is a data exchange format which really grew in popularity as AJAX libraries took off. It's lightweight and human readable, and is a great way of transferring data structures between the browser and the server. JSON Helpers were added in WebMatrix Beta 2, and this article looks at them, and how they can be used. read more...

add a comment |category: |Views: 35

tags: another

Save And Retrieve Files From a Sql Server CE Database with WebMatrix(www.mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 1 year, 10 months ago

A perennial choice that web developers have to make is whether to store uploaded files to the file system or a database. Each method has its pros and cons, and the debate over which approach is best continues to rage. This article will not add to the noise. It will simply demonstrate how to upload files to the Sql Server CE database which is the default option in Web Pages, and how to retrieve them for users again. read more...

add a comment |category: |Views: 9

tags: another

Get The Drop on ASP.NET MVC DropDownLists(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 4 months ago

DropDownLists in ASP.NET MVC seem to cause a fair amount of confusion to developers fresh from Web Forms World. This article looks to provide you with all (well, most) of what you need to know to get your DropDownLists working in ASP.NET MVC. read more...

add a comment |category: |Views: 11

tags: another

ASP.NET MVC - Prevent Image Leeching with a Custom RouteHandler(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 5 months ago

Have you ever noticed an unusually high number of requests in your web server log files for image files? It may well be that someone is linking to your images from their own site, and basically stealing your bandwidth. Here's how to implement a custom RouteHandler within an ASP.NET MVC application to prevent people leeching your images. read more...

add a comment |category: |Views: 28

tags: another

ASP.NET MVC Uploading and Downloading Files(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 5 months ago

If you come to ASP.NET MVC from a purely ASP.NET Web Forms background, one of the first things you are likely to notice is that all those nice easy Server Controls have disappeared. One of those is the FileUpload, and its absence seems to cause a few problems. This article looks at how to upload files to the server in an MVC world, and how to get them back from the server to the user again. read more...

add a comment |category: |Views: 124

tags: another

Storing Files and Images in Access with ASP.NET(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 5 months ago

Should you store files and images in the database or the filesystem in an ASP.NET application? With SQL Server this is a dilemma, with both approaches having their pros and cons. When it comes to Access, the decision is much easier to make. Because an Access database is restricted to 2Gb, it makes more sense to store files in the file system. However, sometimes, you may not have the choice. If you have to use the database, here's how. read more...

add a comment |category: |Views: 4

tags: another

Simple File Download Protection with ASP.NET(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 6 months ago

When it comes to protecting files from unauthorised downloading, the vast majority of articles offer solutions that involve mapping common file types (.pdf, .txt, .doc etc) to ASP.NET within Internet Information Services. However, often in a shared hosting environment, you don't have access to IIS and the hosting company will not agree to providing such mappings for you, so what do you do? read more...

add a comment |category: |Views: 60

tags: another

What ASP.NET Can And Can't Do(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 6 months ago

If you are new to web development and choose ASP.NET Web Forms as your starting point, you may be forgiven for not understanding how ASP.NET works, and what its role is. This article covers the basics which should help you discover your limits. read more...

add a comment |category: |Views: 17

tags: another

Displaying Google Analytics Data in ASP.NET(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 7 months ago

If you have a Google Analytics account, you can use the Data Export API provided by Google to access your visitor stats, and retrieve them for use elsewhere. Here's how to display some stats in ASP.NET. read more...

add a comment |category: |Views: 140

tags: another

Dependency Injection and Inversion of Control with ASP.MET MVC(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 7 months ago

As you delve more into ASP.NET MVC you start to come across a whole new way of doing things that Web Forms development didn't really expose you to. Inversion of Control (IoC) and Dependency Injection (DI) are two phrases that crop up a lot in the MVC space. So what are they all about? And should you care? read more...

add a comment |category: |Views: 22

tags: another

Parameterized IN clauses with ADO.NET and LINQ(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 7 months ago

Since my article on using parameters for Preventing SQL Injection In ASP.NET, I have had a few emails asking how to do the same with an IN clause expression. In this entry, I explore a couple of ways to do this. read more...

add a comment |category: |Views: 13

tags: another

Microsoft Chart Controls to PDF with iTextSharp and ASP.NET MVC(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 8 months ago

If you are developing a business application using ASP.NET MVC, and need to produce some kind of dashboard-style reporting, the Chart Controls from Microsoft are a good place to start. Having a summary in some form of document, say a PDF is also a common requirement. This article introduces you to satisfying both needs. read more...

add a comment |category: |Views: 123

tags: another

jQuery Star Rating with ASP.NET MVC(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 8 months ago

There are a number of jQuery star rating plugins to choose from. All have their pros and cons. For this site, I decided to implement the one from FyneWorks because it allows for split stars. Here's how I did it. read more...

add a comment |category: |Views: 200

tags: another

Preventing SQL Injection in ASP.NET(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 9 months ago

I, and many other contributors to the forums at www.asp.net find examples of code posted on a daily basis that are vulnerable to SQL Injection attacks. We continue to exhort beginners (and some more experienced programmers) to code against them. This article examines just how serious a flaw vulnerable coding can be, and what you should do about it. read more...

add a comment |category: |Views: 16

tags: another

ASP.NET MVC - Battle of the Books(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 9 months ago

There's always a splurge of new books that come out around the RTM of any new ASP.NET related technology. Authors all over the place are burning the midnight oil, cursing the changes from one CTP to the next, through to Betas and hoping against hope that the Release Candidates and final RTMs aren't stuffed with "breaking changes" which inevitably mean total rewrites of whole sections or chapters in their draft. And then the race between the publishers is on, as each tries to get their offer to market before the others. Here, I look at three of the titles that were published around the time that ASP.NET MVC was launched, and give my judgement on how they fare in covering not only the core Framework but the key features that ASP.NET MVC is designed to offer read more...

add a comment |category: |Views: 6

tags: another

RSS Feeds and Google Sitemaps for ASP.NET MVC with LINQ To XML(mikesdotnetting.com)

submitted by MikesdotnettingMikesdotnetting(340) 2 years, 10 months ago

For the majority of personal web sites, two uses of XML are commonplace: creating an RSS feed and a Google Sitemap. Here, I look at how to create both of those using LINQ to XML for an ASP.NET MVC web site. read more...

add a comment |category: |Views: 256

tags: another