Here are the SQL server data types for quick reference,
Exact numerics – (bigint, bit, decimal, int, money, numeric,
smallint)
Approximate numerics (float, real)
Date and time (date, datetime2, datetime, datetimeoffset,
time)
Character strings (char, varchar, text)
Unicode character strings (nchar,...
Friday, February 28, 2014
Sunday, February 16, 2014
ASP.NET ViewState example
ViewState is a client
side state management mechanism. It is not the only state management mechanism.
Some other examples would be,
For client side state
management,
·
Hidden Field
·
Cookies
·
Control...
Tuesday, February 4, 2014
Could not load file or assembly EntityFramework, Version=6.0.0.0 and MVC 4
In MVC 4 this mostly happens when you create a MVC 4 project and then for your DAL (Data access layer ) you have a separate class library project and install EF through NuGet. NuGet will give you the latest version which is currently EF 6. When you try to run the project you will see an error similar...
Saturday, February 1, 2014
ViewBag vs ViewData in ASP.NET MVC
Bottom line is that they are essentially the same, ViewBag is just a dynamic wrapper around ViewData. ViewData is actually a dictionary used to pass data from controllers to views. The following example will make this clear,
ViewBag.Name = "Padmika"
is equal to,
ViewData["Name"] = "Padmi...