Sunday, February 27, 2011

Node.js, Javascript on server side

An interesting open source project:


An example of a web server written in Node which responds with "Hello World" for every request.
var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(8124, "127.0.0.1");
console.log('Server running at http://127.0.0.1:8124/');



http://nodejs.org/

Saturday, February 26, 2011

How to use Entity Framework for MySQL?

Install Connector/Net.



Connector/Net is a fully-managed ADO.NET driver for MySQL.
http://www.mysql.com/downloads/connector/net

Thursday, February 24, 2011

Inline tags and method for ASP.NET Globalization and Localization

Inline tags and method for ASP.NET Globalization and Localization
http://msdn.microsoft.com/en-us/library/ms228093(v=vs.80).aspx

Implicit localization: (Local resource Resx file)
<asp:Button ID="Button1" runat="server" Text="DefaultText"
    meta:resourcekey="Button1" />


Explicit localization: (Global resource file)
<asp:Button ID="Button1" runat="server"
    Text="<%$ Resources:WebResources, Button1Caption %>" />


By method:
GetLocalResourceObject
http://msdn.microsoft.com/en-us/library/ms149952.aspx

ASP.Net WebForms next version is coming

Timeline: in next 10-12 months
New features: Model binding, Entity Framework Code First; Jquery validation etc.

Scott chats with Damian Edwards about new features coming in ASP.NET WebForms, new techniques, controls, model binding, HTML 5 and more.