Don't confuse with IronPython.
http://us.pycon.org/2008/conference/schedule/event/23/
Saturday, September 13, 2008
Tuesday, August 19, 2008
Ironpython - ADO.NET
Here is a very simple example on accessing ADO.NET
Feel free to comment
# Module Init.py
Feel free to comment
# Module Init.py
import clr
clr.AddReference("System.Data")
from System.Data import *
from System.Data.SqlClient import *
dbCn = SqlConnection("""Data Source=Python\Sqlexpress;Initial Catalog="C:\SQL SERVER 2000 SAMPLE DATABASES\NORTHWND.MDF";Integrated Security=True""")
dbCn.Open()
ds = DataSet()
dbDa = SqlDataAdapter()
class Table:
def __init__(self,name,command=None):
self.name = name
if command:
self.command = command
else:
self.command = "select * from %s"%self.name
self.sqlCommand()
self.fill_dbDa()
def sqlCommand(self):
self.dbCmd = SqlCommand(self.command,dbCn)
self.CommandType = CommandType.Text
dbDa.SelectCommand = self.dbCmd
def fill_dbDa(self):
dbDa.Fill(ds,self.name)
self.dataTable = ds.Tables[self.name]
dbCn.Close()
# File default.asp.py
import Init
def Page_Load(sender, e):
products = Init.Table("Products")
GridView1.DataSource = products.dataTable
GridView1.DataBind()
Sunday, August 17, 2008
ASP.NET Dynamic Data Support
New features of NET 3.5.
It allows to easily create CRUD Web site.
You can of course customize the result as you want.
Here is an article from Scott
http://weblogs.asp.net/scottgu/archive/2007/12/14/new-asp-net-dynamic-data-support.aspx
It allows to easily create CRUD Web site.
You can of course customize the result as you want.
Here is an article from Scott
http://weblogs.asp.net/scottgu/archive/2007/12/14/new-asp-net-dynamic-data-support.aspx
.NET Framework 3.5 Enhancements Training Kit
All is in the title .
http://www.microsoft.com/downloads/details.aspx?FamilyID=355c80e9-fde0-4812-98b5-8a03f5874e96&displaylang=en
http://www.microsoft.com/downloads/details.aspx?FamilyID=355c80e9-fde0-4812-98b5-8a03f5874e96&displaylang=en
Thursday, August 14, 2008
WPF vs ASP.NET
WPF or ASP.NET ?
I personnaly think that in an intranet site, WPF applications
are a better choice.
Here is another article who shares the same idea
Reasons For Choosing WPF Over ASP.NET For Our Very Large Project
I personnaly think that in an intranet site, WPF applications
are a better choice.
Here is another article who shares the same idea
Reasons For Choosing WPF Over ASP.NET For Our Very Large Project
Visual Studio 2008 and .NET Framework 3.5 Service Pack 1 Beta
ScottGu describes the new features of the SP1
http://weblogs.asp.net/scottgu/archive/2008/05/12/visual-studio-2008-and-net-framework-3-5-service-pack-1-beta.aspx
http://weblogs.asp.net/scottgu/archive/2008/05/12/visual-studio-2008-and-net-framework-3-5-service-pack-1-beta.aspx
Subscribe to:
Posts (Atom)