-
Recent Posts
Archives
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
Categories
Meta
Monthly Archives: September 2011
iostream directive is not enough in VC++ for cout
The famous pain for VC++ learning is the cout using VC++. In other compilers cout only requires iostream.h header but unfortunately this does not work for VC++. VC++ requires another statement using namespace std; See the complete Hello word … Continue reading
Visual Studio 11 in Windows 8
Successful installed first Visual Studio 11 public build in first Windows 8 public build.
What’s New in ASP.NET 4.5 and Visual Studio 11
What’s New in ASP.NET 4.5 and Visual Studio 11 Resources: http://www.asp.net/vnext/
SQL Server Code Name "Denali"
SQL Server Code Name “Denali”. What is new in Denali? SQL Server and the Data Explosion
Using ObjectQuery with Entity Framework
Normally we manipulate the Entity Framework using var like the statements below. BeancurdModel.BeancurdEntities context = new BeancurdModel.BeancurdEntities(); var bc = from b in context.Beancurds select b; We can actually do it without using var. The below statements are … Continue reading
Using IEnumerable with LINQ
Instead of var IEnumerable can be used accept the result from LINQ. staticvoid Main(string[] args) { Model1Container context = newModel1Container(); IEnumerable<Course> result = from r in context.Courses select r; foreach (Course c in result) … Continue reading
How to pass var as parameter
The sample below is one of the options to pass var to a method as parameter. classProgram { publicstaticvoid GetData(IQueryable<Course> context) { foreach (Course c in context) { Console.WriteLine(c.Course_Name); foreach (Video v in … Continue reading
Factorial using C#
This Factorial code is modified by Chan Yii Yat. publicclassclsFactorial { publicstaticlong Fac(long i) { return ((i <= 1) ? 1 : (i * Fac(i – 1))); } } classMainClass { publicstaticvoid Main() … Continue reading
The base class includes the field ‘MyControl_1′, but its type (MyControl) is not compatible with the type of control (ASP.MyControl_ascx)
Remove the underscore(_) from your class name if you have one. This is for ASP.NET 4.0. For example, change from public partial class usercontrols_AuditTrail : System.Web.UI.UserControl to public partial class usercontrolsAuditTrail : System.Web.UI.UserControl