djsolid

Stories submitted by djsolid

PetaPoco and Spatial Data Types(john.katsiotis.com)

submitted by djsoliddjsolid(429) 8 months, 29 days ago

PetaPoco is a micro-ORM for .NET and Mono. If you haven’t see it yet I suggest you to check it out. Alternatives to PetaPoco are Massive and Dapper. (If you know more projects let me know). After this brief introduction let me begin by explaining the problem. I need it to build a simple web app with a fairly simple data model that was using Spatial Data. The app would use SQL Server 2008... read more...

add a comment |category: |Views: 18

tags: another

ASP.NET MVC - Passing a Flag Enum to an Action as Parameter(john.katsiotis.com)

submitted by djsoliddjsolid(429) 10 months, 28 days ago

A flag Enum is an Enumeration that can hold multiple values per instance An example of such Enum is ... read more...

add a comment |category: |Views: 14

tags: another

Visual Studio - A Common Replace Scenario(john.katsiotis.com)

submitted by djsoliddjsolid(429) 11 months, 1 day ago

Visual Studio has a build in Replace function that uses Regular Expressions. Let’s consider the following scenario: Although it’s not “good” code many times a developer has to write the following code... read more...

add a comment |category: |Views: 6

tags: another

ASP.NET MVC 3 - A RadioButtonList for Enum Properties(john.katsiotis.com)

submitted by djsoliddjsolid(429) 11 months, 1 day ago

ASP.NET MVC3 doesn’t have a built-in RadioButtonList helper and there are times that I want to display an Enum property. I can always do that using a dropdown list but if there are 2 or 3 values then it’s more user-friendly if the user sees all the options. So in a simple yes/no question ... read more...

add a comment |category: |Views: 120

tags: another

The Notebook Project - An open-source sample for WebMatrix(john.katsiotis.com)

submitted by djsoliddjsolid(429) 1 year ago

An open source sample website with many features that was built with Microsoft WebMatrix! read more...

add a comment |category: |Views: 11

tags: another

Using Webpages helpers inside ASP.NET WebForms(john.katsiotis.com)

submitted by djsoliddjsolid(429) 1 year, 3 months ago

Now a few helpers are available for usage with Razor Syntax and ASP.NET WebPages or ASP.NET MVC. But those helpers can be used also inside a Webforms application. For example I find the Paypal helper extremely usefull. Let’s use it inside an ASP.NET Webforms App. read more...

add a comment |category: |Views: 6

tags: another

ASP.NET Membership - Change password without asking the old (WITH QA)(weblogs.asp.net)

submitted by djsoliddjsolid(429) 1 year, 9 months ago

Change a user password when the Password format is set to hashed and your site requires QA without needing the initial password. read more...

add a comment |category: |Views: 35

tags: another

Do you want to crash VS2010?(weblogs.asp.net)

submitted by djsoliddjsolid(429) 1 year, 11 months ago

You can try something if you want to crash VS 2010 RC. read more...

add a comment |category: |Views: 11

tags: another

Date Comparison – Entity Framework(weblogs.asp.net)

submitted by djsoliddjsolid(429) 2 years, 1 month ago

A quick tip about how to compare a datetime field in our database and to be extact only the Date part ignoring the time. read more...

add a comment |category: |Views: 40

tags: another

Make your site run only in ONE Browser window(single instance)!(weblogs.asp.net)

submitted by djsoliddjsolid(429) 2 years, 2 months ago

Silverlight 3 and Local Messaging! Can this be used in order to allow the user to open my website in only one browser window? read more...

add a comment |category: |Views: 17

tags: another

ASP.NET Membership - Change password without asking the old (weblogs.asp.net)

submitted by djsoliddjsolid(429) 2 years, 4 months ago

How to change a user password using MembershipUser.ChangePassword without using the old password of the user. read more...

add a comment |category: |Views: 56

tags: another

Anonymous user access in N2 CMS(weblogs.asp.net)

submitted by djsoliddjsolid(429) 2 years, 9 months ago

This is a way to allow items being displayed only to anonymous users in N2 CMS, read more...

add a comment |category: |Views: 24

tags: another

Set default values for properties(weblogs.asp.net)

submitted by djsoliddjsolid(429) 3 years, 4 months ago

Many times I needed to set a default value for a property. For example at the property below public string Property1 {get; set;} I wanted a default value "Value1". The only way was to create a private field or to set it in code like Property1 = "Value1" somewhere. read more...

add a comment |category: |Views: 31

tags: another

ASP.NET MessageBox Server and Client (weblogs.asp.net)

submitted by djsoliddjsolid(429) 3 years, 4 months ago

An ASP.NET Message box that can be used from the server and from the client side! read more...

add a comment |category: |Views: 444

tags: another

The @Reference Directive(weblogs.asp.net)

submitted by djsoliddjsolid(429) 3 years, 5 months ago

When I want to add a user control to a page I use the @Register directive at the top of the page. and the I add the control to the markup. But what if I want to add a user control programmatically but I have no reference of it via the markup? That is where the @Reference directive comes to action. read more...

add a comment |category: |Views: 23

tags: another

ASP.NET Browsers Filter!!(weblogs.asp.net)

submitted by djsoliddjsolid(429) 3 years, 6 months ago

Yesterday .NET SP1 released and many new features for ASP.NET where added. But yesterday i also discovered a feature that ASP.NET has from version 2.0 Let's say we have a button. We can decide what value will the properties have for different browsers!!! And we can do that with this way... read more...

1 comment |category: |Views: 363

tags: another