Monday, February 28, 2011
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.
http://nodejs.org/
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
http://www.mysql.com/downloads/connector/net
Friday, February 25, 2011
In Entity Framework, How to create navigation properties between two tables without defined foreign key relation in database?
Create a association for mapped two entities.
Foreign Keys in the Entity Framework:
http://blogs.msdn.com/b/efdesign/archive/2009/03/16/foreign-keys-in-the-entity-framework.aspx
Foreign Keys in the Entity Framework:
http://blogs.msdn.com/b/efdesign/archive/2009/03/16/foreign-keys-in-the-entity-framework.aspx
Subscribe to:
Posts (Atom)