Geeks With Blogs

News
Programmers are tools for converting caffeine into code.

dotNed blogger


Bob Goedkoop Programming C# on Microsoft's .NET plaform
26
Nov 13
As stated by Microsoft: "Using the MVVM pattern, the UI of the application and the underlying presentation and business logic is separated into three separate classes: the view, which encapsulates the UI and UI logic; the view model, which encapsulates presentation logic and state; and the model, which encapsulates the application's business logic and ......

Technorati Tags: jquery,javascript,WCF,REST,... Without further ado, here is a javascript class that can be used to call a WCF REST web service: // ---------------------------... // ---------------------------... // Class WcfService // // Dependencies: // JQuery // // ---------------------------... // Constants // ---------------------------... ......

Short and sweet, this blog is about programming in the C# language on the Microsoft .NET platform. There’s more than enough information on C# and .NET out there, so why this blog… well… ’cause its mine and the others are not . So, who am I? I will post about issues I encountered during my life as a professional nerd that actually made me scratch my ......

04
Jul 13
Technorati Tags: .NET,C#,IBAN,SEPA,Mod97 For my current project we need to validate IBAN numbers. IBAN numbers are validated with an ISO 7064 mod-97-10 calculation where the remainder must equal 1 static public bool Validate(string iban) { // pre-conditions if ( string.IsNullOrEmpty( iban ) || (!Regex.IsMatch(iban, "^[A-Z0-9]") ) ) { return false; } ......

Technorati Tags: .NET,Razor,C#,MVC,HTML Starting from MVC 3 and up this issue has been addressed. From MVC 3 and up underscores in HTML attributes are automatically converted to dashes. Here’s an example: @Html.TextBox( "tbxOne", "", new { @data_id = "someId", @style= "width:120px; text-align:right;" }) This wil result in: <input data-id="someId" ......

Copyright © Bob Goedkoop | Powered by: GeeksWithBlogs.net | Join free