Tuesday, March 1, 2011

ClientIDMode is a big help for JQuery in ASP.NET WebForms


Problem:
Client ID for a server side tag is generated dynamically in ASP.NET, particularly in user control.
This way will make inconvenience for JQuery selector. 
Solution:
There is a new attribute in ASP.NET 4, ClientIDMode to solve this problem, Especially, Static and Predicable modes

Monday, February 28, 2011

How to Build an RSS Feed with ASP.NET

http://net.tutsplus.com/tutorials/asp-net/how-to-build-an-rss-feed-with-asp-net/

PDF viewer, How to display PDF or MS Office documents in web page without installed client software

How to display PDF or MS Office documents in web page without installed client software?
Google Docs viewer
Example code:
<html><body>
<iframe src="http://docs.google.com/viewer?url=per.lacity.org%2Fexams%2Fchromeissue.pdf&embedded=true" width="600" height="780" style="border: none;"></iframe>
</body></html>

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