derans

Stories kicked by derans

How to easily turn your L2S objects into interfaces(derans.blogspot.com)

submitted by deransderans(323) 7 months, 11 days ago

In one of our recent code reviews, we found several methods that looked almost identical. All of these methods were just for lookup tables that populated a dropdown. So…this is what we did: We had a repository with something like GetDepartmentList and GetStatusList that looked something like this: read more...

add a comment |category: |Views: 2

tags: another

New jQuery Plugin: FunkyFocus(derans.blogspot.com)

submitted by deransderans(323) 1 year ago

So this jQuery plugin was built to help my end-users know immediately what section of a form they’re working on. Also, don’t blame me for the name. It was given to my new plugin by my wife because I couldn’t think of anything “catchy”. Basically what this thing does is changes the background of sections of forms or individual inputs. It’ll be better to post screenshots to get the idea…so…here you go… read more...

add a comment |category: |Views: 14

tags: another

Contact Form Revisited with ASP.NET MVC 3, jQuery Validator...(derans.blogspot.com)

submitted by deransderans(323) 1 year ago

I recently added a partial contact view to my MVC3 project and thought I’d share since I did basically this same post over a year ago with the original MVC. I stopped using the Castle Validation because I’ve found that the MVC3 stuff is working for me now. I also am not using fluentHtml anymore because MVC3 uses that style now. read more...

add a comment |category: |Views: 47

tags: another

Seriously WebForms like ASP.NET MVC(derans.blogspot.com)

submitted by deransderans(323) 1 year ago

I used my little WebFormContrib library again today. Some days I love revisiting old code because you realize how ignorant of some practices you were in the past. Hopefully none of you download it and say…geez this guy is Mr. Ignoramus. If you do, keep it to yourself. Kidding, please comment and inform the ignorant (me). read more...

add a comment |category: |Views: 1

tags: another

ASP.NET MVC 3 Sample Project Launched(derans.blogspot.com)

submitted by deransderans(323) 1 year, 1 month ago

Okay, after popular demand of I think 0 people, I’ve published my old demo MVC 1 project as an MVC 3 project. If you haven’t read any of the posts on the last demo project, check out this post. This project completely separates UI & C# code, so you only have 2 projects (Core & UI…not counting the Unit Tests project). Basically, all I did was create a new MVC 3 project using Razor with Microsoft’s default template and deleted everything except the following: read more...

add a comment |category: |Views: 54

tags: another

Simplify Authorization with an Attribute(derans.blogspot.com)

submitted by deransderans(323) 1 year, 2 months ago

There are about 10 bajillion ways to figure out if a user is authorized to call a method or see a page or whatever else. This particular post is about how to create an attribute to see if a user is authorized to do a particular action. I’ll give an example using MVC and WebForms. read more...

add a comment |category: |Views: 8

tags: another

Allowing HTML with iFrames and jQuery(derans.blogspot.com)

submitted by deransderans(323) 1 year, 4 months ago

So I’ve had a problem of displaying other people’s HTML on my page and their invalid HTML messing up my page’s formatting. So, I found a solution after digging through the Outlook Web Application (OWA) HTML to see how they handle the issue. I do it a little differently, but the idea is the same. read more...

add a comment |category: |Views: 4

tags: another

WebFormContrib – Sample Part 3(derans.blogspot.com)

submitted by deransderans(323) 1 year, 5 months ago

This sample on the WebFormContrib mini-framework is on how to do a form post. If you’d like a particular sample on how to do something or if I’m missing something, please leave a comment. read more...

add a comment |category: |Views: 3

tags: another

WebFormContrib – Sample Part 2(derans.blogspot.com)

submitted by deransderans(323) 1 year, 5 months ago

This sample on the WebFormContrib mini-framework is a mixture of a form post and viewing an item. If you’d like a particular sample on how to do something or if I’m missing something, please leave a comment. read more...

add a comment |category: |Views: 4

tags: another

WebFormContrib – Sample Part 1(derans.blogspot.com)

submitted by deransderans(323) 1 year, 5 months ago

After using the WebFormContrib mini-framework the past couple weeks, I’ve grown to really like it. I thought I’d share some of the ways I’m using it in hopes that you might benefit from it too. This first sample is on how to show data on a page and not have to worry about any of the form elements. We will also not use any asp.net controls like gridviews, literals, or labels. So, here we go using Visual Studio 2008… read more...

add a comment |category: |Views: 4

tags: another

WebFormContrib – Web Forms more like ASP.NET MVC(derans.blogspot.com)

submitted by deransderans(323) 1 year, 6 months ago

Lately I’ve been stuck working on projects using Web Forms and after reading one of Jimmy Bogard’s recent blog posts, I was inspired to create a small library similar to MVC Contrib, but for Web Forms. read more...

add a comment |category: |Views: 3

tags: another

Fluent Search Interface with some Func(derans.blogspot.com)

submitted by deransderans(323) 1 year, 7 months ago

So…how do you start a fluent interface? By typing how you’d want your code to read, at least that’s how I do it. So I created a unit test project and started typing how I’d like my interface to work. This is what I came up with: read more...

add a comment |category: |Views: 4

tags: another

Slow Down Filter for Throttling Requests with ASP.NET MVC (derans.blogspot.com)

submitted by deransderans(323) 1 year, 10 months ago

I’ve been looking for a good filter to play with and finally found one today. Basically, I want to slow down requests to prevent people and/or other mechanisms from submitting a form. read more...

add a comment |category: |Views: 29

tags: another

Authenticating Against Multiple Domains with C# & StructureMap(derans.blogspot.com)

submitted by deransderans(323) 1 year, 10 months ago

In my place of work, we had a vendor come in and try to sell us a product that couldn’t authenticate to multiple domains. Well, we have multiple domains. Their suggestion was to consolidate into one…obviously we’re not using their product. So, in an effort to help out, I thought I’d share a method of authenticating to multiple domains. read more...

add a comment |category: |Views: 10

tags: another

jQuery AJAX with ASP.NET Web Forms & Sitefinity(derans.blogspot.com)

submitted by deransderans(323) 1 year, 11 months ago

My team and I are working with Sitefinity to create our new portal. Well, since Sitefinity doesn’t currently support MVC, we’re having to use the “good” ole web forms. Sitefinity is a really nice CMS and allows for full customization and we’re still learning how to handle the custom user controls. So…this is how we’re doing it right now. read more...

add a comment |category: |Views: 46

tags: another

Creating a Fluent Interface with C#(derans.blogspot.com)

submitted by deransderans(323) 2 years ago

So I’ve been using fluent interfaces for a while now and I’ve really grown to like them. It made me want to write one, so I did. I made a simple interface for creating an LDAP URL. It’s really basic, but I thought it was cool nonetheless. Here’s what I ended up doing… read more...

add a comment |category: |Views: 38

tags: another