hkurabko

Stories submitted by hkurabko

Entity Framework (Code First): the easy way to run stored procedures(code-clarity.blogspot.com)

submitted by hkurabkohkurabko(85) 3 months, 5 days ago

This article describes how to run SPs without manually specifying such a boring stuff as parameters of SP. Extension methods can do this itself. read more...

add a comment |category: |Views: 12

tags: another

Code clarity: MVC 2 DropDownListFor - Any troubles? - Part 2(code-clarity.blogspot.com)

submitted by hkurabkohkurabko(85) 1 year, 10 months ago

Hello again. Today I want to talk about select list with optgroups. So, I need such a list. MVC has no support for it. What to do? After little browsing I decide wrote my own solution. It is based on code from fixed version of MVC DropDownList (you can read about it in Part 1). Main features of the list: * of course - support of groups of options * you can use it with options and with groups of options in any order, iow first item can be option, then - option group, and at the end, again - option. read more...

add a comment |category: |Views: 146

tags: another

Code clarity: MVC 2 DropDownListFor - Any troubles? - Part 1(code-clarity.blogspot.com)

submitted by hkurabkohkurabko(85) 1 year, 10 months ago

When working on one project, I have a trouble with MVC DropDownListFor - selected value doesn't returned to the server. I saw a lot of articles, questions, etc.. about this theme. And I decide to write a little article about my solution. As for me - it is more than simple :) read more...

add a comment |category: |Views: 331

tags: another

Code clarity: ASP.NET MVC 2 - Building extensible view engine.(code-clarity.blogspot.com)

submitted by hkurabkohkurabko(85) 1 year, 11 months ago

Describes how to write an ViewEngine that can be easily extended to do whatever you want. For example you can add support of skinning or some other cool features ;) read more...

add a comment |category: |Views: 15

tags: another

Requirements specification and RFC(code-clarity.blogspot.com)

submitted by hkurabkohkurabko(85) 2 years, 2 months ago

About how RFC can help to write more strict requirement documents. read more...

add a comment |category: |Views: 2

tags: another

C# renderer for jQuery DataTables(code-clarity.blogspot.com)

submitted by hkurabkohkurabko(85) 2 years, 2 months ago

DataTables is an excellent plugin for the jQuery javascript library to extend HTML table with advanced functionality. I like to use it in projects, but (may be it is strange for someone) I don't like lot's of raw JavaScript code in aspx\ascx pages. Some code I extract from page and write it using Script# - another excellent tool. But some code needs to be on a page for some reasons. In such cases I prefer to use a "renderer" - set of strong typed C# classes that renders needed JavaScript to the page. ... read more...

1 comment |category: |Views: 406

tags: another

Tips on using Virtual Directories in ASP.NET, MVC, HttpSimulator, Site(code-clarity.blogspot.com)

submitted by hkurabkohkurabko(85) 2 years, 3 months ago

Imagine you develop a web-site. You register IIS site to test it, seems like all is ok. You deploy it to customer, and... oh no! where is my images, styles, scripts? and why site map causes an exception?! It is common situation when site developed and tested on IIS web-site root, and deployed into Virtual Directory. Here I want to describe some tips to avoid such situations. read more...

add a comment |category: |Views: 70

tags: another

String templates revisited(code-clarity.blogspot.com)

submitted by hkurabkohkurabko(85) 2 years, 4 months ago

Sometimes I encounter a task - create some little template, that user can easily configure. Yeah, there are many powerful template engines, or you can use {0}, {1} placeholders, or even handwritten #Id#, #Name# placeholders. But this article describes yet another way - simple and descriptive string formatters such as in ASP.NET AJAX 4.0: {Id}, {Name}, {Login}. This placeholders reflects public properties or fields of an object. read more...

add a comment |category: |Views: 6

tags: another

ASP.NET MVC 2.0 Client validation exposed(code-clarity.blogspot.com)

submitted by hkurabkohkurabko(85) 2 years, 5 months ago

Describes how to add validation rules in MVC 2.0 from code. Yeah, data annotation and rules in model is cool. But I have found no info about how to add client validation rules from code, it can be useful in many cases. So, I go to Reflector and try to find some way to do this. read more...

add a comment |category: |Views: 29

tags: another