prokofyev

Stories submitted by prokofyev

Using WebImage in WinForms applications(prokofyev.blogspot.com)

submitted by prokofyevprokofyev(35) 10 months, 8 days ago

System.Web.Helpers namespace contains useful class WebImage which is able to load an image from a stream or a file, transform it and render in browser. Alternatively you could save the image to a file. But if you try using WebImage class in WinForms application this way you'll get an error... read more...

add a comment |category: |Views: 2

tags: another

Degradable cascading dropdown lists (prokofyev.blogspot.com)

submitted by prokofyevprokofyev(35) 1 year, 3 months ago

There are several samples how to create cascading dropdown lists for ASP.NET MVC on the Web. But in my opinion they are overcomplicated. Manual generation of tags, JSON format to pass data from controller to view, using web services instead of usual action methods, all this is unnecessary. At the same time it's important what users with disabled Javascript could still use cascading dropdown lists on your form. I will show now how to obtain this. read more...

add a comment |category: |Views: 29

tags: another

Adding a row filter to System.Web.Helpers.WebGrid(prokofyev.blogspot.com)

submitted by prokofyevprokofyev(35) 1 year, 3 months ago

ASP.NET MVC 3 web grid doesn't have a row filter out of the box but it could be easily added in case of need. read more...

add a comment |category: |Views: 250

tags: another

Unobtrusive validation attributes and ViewContext.FormContext (prokofyev.blogspot.com)

submitted by prokofyevprokofyev(35) 1 year, 3 months ago

ASP.NET MVC 3 has a new interesting feature called unobtrusive client validation. For more detailed information you may read an article by Brad Wilson. But in short it means what for an annotated model property like: read more...

add a comment |category: |Views: 25

tags: another

Valid hash algorithm names for Crypto.Hash method(prokofyev.blogspot.com)

submitted by prokofyevprokofyev(35) 1 year, 3 months ago

For unknown reason an algorithm parameter of System.Web.Helpers.Crypto.Hash method is a string instead of an enumeration value. To learn which algorithms are available read more...

add a comment |category: |Views: 4

tags: another

Sort indicator in System.Web.Helpers.WebGrid (prokofyev.blogspot.com)

submitted by prokofyevprokofyev(35) 1 year, 3 months ago

ASP.NET MVC 3 has a new long expected native class System.Web.Helpers.WebGrid which is highly customizable and could be used in a number of different scenarios. Among other the grid is able to automatically sort data by selected column. I would like to show how to add a sort indicator near the column title. It's not too difficult, but as I know, can't be done by configuring WebGrid itself. read more...

add a comment |category: |Views: 168

tags: another

Simplify Iteration in Your MVC Views(blog.codeville.net)

submitted by prokofyevprokofyev(35) 2 years, 7 months ago

This is just a simple little tip, but it may come in handy if you frequently iterate over collections in your ASP.NET MVC views. How often do your ASP.NET MVC views need to iterate over a collection to render some HTML for each item? read more...

add a comment |category: |Views: 28

tags: another