KirillOsenkov

Stories submitted by friends of KirillOsenkov

User Password Expired filter attribute with ASP.NET MVC(www.leniel.net)

submitted by lenielleniel(504) 2 days, 12 hours ago

A recent set of requirements I’ve been playing with deals with passwords. This one specifically handles password expiration. Given that I’m working with ASP.NET MVC I know I can rest assured that there’s some great (read awesome) way of implementing a given requirement. This is exactly what happened and I want to show you how to have a clean and beautiful solution to this problem. Read on... read more...

add a comment |category: |Views: 3

tags: another

Resize image on the fly with ASP.NET MVC(www.leniel.net)

submitted by lenielleniel(504) 1 month ago

I built a piece of code sometime ago to display image thumbnails in a listing page. I thought it's about time to optimize it. I refactored it and started using the WebImage class that comes in System.Web.Helpers namespace. With this class in place you can resize, crop, rotate, etc any image. There's no need to save the thumbnail in the disk, that is, a new image can be generated on the fly/dynamically and sent to the user’s browser. read more...

add a comment |category: |Views: 15

tags: another

ResourceManager with an External Assembly DLL(www.leniel.net)

submitted by lenielleniel(504) 5 months, 25 days ago

As a software developer I like to work with everything that is related to software Localization known as L10n. Besides being a developer working defining the architecture that will be adopted in a given project and doing the hard “FUN” work writing the code, I’m also a translator. One thing I've been trying to do recently is to be able to use localized strings that are present in an external assembly [ DLL ] using the ResourceManager object. Read on... read more...

add a comment |category: |Views: 1

tags: another

SQL UPDATE statement with SELECT and SQL Server Image data type column(www.dzone.com)

submitted by lenielleniel(504) 9 months, 18 days ago

In a SQL Server database I have a table called users which has a column named signature. This columns is of type Image. My production SQL Server is located in a shared hosting environment. One problem I’ve been facing lately is that I need permission to execute an UPDATE statement to insert a signature image for a given user. This problem occurs because to insert a signature image for a given user I have to execute a BULK statement. Read on... read more...

add a comment |category: |Views: 4

tags: another

SVN, Hudson and MSBuild - Revision control repository(www.leniel.net)

submitted by lenielleniel(504) 9 months, 25 days ago

This series of posts I’m starting today serves as a guide on how to setup a continuous integration/CI server. All the the tools I’m going to use are FREE. The series will focus on continuous integration of .NET family of projects and I’ll write things in the order I installed them. This 1st part will deal with the Revision Control repository configuration. read more...

add a comment |category: |Views: 5

tags: another

Import/Export SQL Server database table data with SSMS(www.leniel.net)

submitted by lenielleniel(504) 10 months, 1 day ago

This post is a visual guide about one of the most powerful features of Microsoft SQL Server Management Studio (SSMS) 2008: Import/Export database data. These tasks are useful for example when you need to debug an application with real world/production data to find possible bugs in your code. You can import the production database data to your local development database and find what’s causing problems. These tasks can be used to create a protection layer because you won’t be working “directly” with production data. read more...

add a comment |category: |Views: 2

tags: another

Replacing Web.config settings with Transformations(www.leniel.net)

submitted by lenielleniel(504) 11 months, 11 days ago

Let’s say you want to point to a different connection string when you deploy your ASP.NET Web Project to your hosting provider. Until recently you’d have to modify your Web.config file manually. This is an easy procedure but you might end screwing up the file in some way. Visual Studio 2010 comes with a great new feature called Web.config Transformation that allows you to perform transformations in whatever section of your Web.config file. read more...

add a comment |category: |Views: 9

tags: another

Building a jQuery Plug-in to make an HTML Table scrollable(www.west-wind.com)

submitted by rstrahlrstrahl(7226) 11 months, 28 days ago

Table displays in limited space require some rendering alternatives. While paging is a common way to address fixed size displays, it's not an end-all solution. Sometimes it's necessary to display larger amounts of data in a small fixed space on an HTML page. Scrollable list are fairly easy to do with most HTML structures, but HTML tables are notoriously difficult to manage when it comes to scrolling. In this post I describe a jQuery plug-in that attempts to make any table scrollable by decomposing and reassembling the table into two distinct areas. read more...

add a comment |category: |Views: 31

tags: another

Built-in GZip/Deflate Compression on IIS 7.x(www.west-wind.com)

submitted by rstrahlrstrahl(7226) 1 year ago

IIS 7.x makes content compression via GZip very easy. Here's how compression on IIS works and how you can set it up on your server in a few simple steps. read more...

add a comment |category: |Views: 40

tags: another

Expression Blend Book(www.developingfor.net)

submitted by CharlieCalvertCharlieCalvert(7875) 1 year ago

In progress read more...

add a comment |category: |Views: 8

tags: another

ASP.NET GZip Encoding Caveats(www.west-wind.com)

submitted by rstrahlrstrahl(7226) 1 year ago

GZip and Deflate compression is easy to use in ASP.NET applications, but there are a few caveats that you need to watch out for. This post reviews the basics of implementing compression in ASP.NET code and describes a couple of scenarios that can cause problems when using programmatic compression via Response.Filter. read more...

add a comment |category: |Views: 7

tags: another

ASP.NET Routing not working on IIS 7.0(www.west-wind.com)

submitted by rstrahlrstrahl(7226) 1 year, 1 month ago

Got caught be a difference in behavior between IIS 7.0 and IIS 7.5 with how module management to extensionless URLs are fired in IIS. Routing was working fine on my dev machine, but not on my live server. Here's what you need to watch out for. read more...

add a comment |category: |Views: 24

tags: another

Setting up custom ASP.NET Routing to an HttpHandler(www.west-wind.com)

submitted by rstrahlrstrahl(7226) 1 year, 1 month ago

Routing support in ASP.NET 4.0 has been vastly improved, but custom routing still involves a fairly complex process of creating RouteHandlers and mapping requests properly. In this post I show an example of how to create custom routes automatically via Attribute route mapping for Http Handler endpoints. read more...

add a comment |category: |Views: 20

tags: another

Hosting the Razor Engine for Templating in Non-Web Applications(www.west-wind.com)

submitted by rstrahlrstrahl(7226) 1 year, 4 months ago

In this article I describe a set of classes that provide a wrapper around the Razor View Engine so you can use it easily in your own applications to provide templating functionality. read more...

1 comment |category: |Views: 71

tags: another

Using jQuery to disable/enable and check/uncheck Radio Buttons on Date(www.leniel.net)

submitted by lenielleniel(504) 1 year, 5 months ago

Motivated by a question posted at StackOverflow - Disable radio button depending on date, I decided to help and here I’m with another code snippet post. This time I show you how to use jQuery UI and its Datepicker control to control a set of radio buttons (only 2 in this post to make things easier) that have their state (enabled/disabled) changed depending on the date selected by the user in the datepicker control. read more...

add a comment |category: |Views: 28

tags: another

StackOverflow: best place to share/learn programming(www.leniel.net)

submitted by lenielleniel(504) 1 year, 9 months ago

I’ve been spending some time of my days helping others at StackOverflow. StackOverflow (SO) is the best place to ask questions related to software programming. There you can be sure that someone somewhere will help you to find an answer to your question. As a consequence I decided that I’ll try to give back and share a portion of the knowledge I acquired in these 7 years of programming experience. Read on... read more...

add a comment |category: |Views: 5

tags: another