Posts

ViewData VS ViewBag Vs TempData in MVC ViewData and ViewBag are used for the same purpose --  to transfer data from controller to view.  ViewData is nothing but a dictionary of objects and it is accessible by string as key. ViewData is a property of controller that exposes an instance of the ViewDataDictionary class. ViewBag is very similar to ViewData. ViewBag is a dynamic property (dynamic keyword which is introduced in .net framework 4.0). ViewBag is able to set and get value dynamically and able to add any number of additional fields without converting it to strongly typed. ViewBag is just a wrapper around the ViewData. ViewData Example //Controller Code    public  ActionResult Index()   {         List<string> Student =  new  List<string>();         Student.Add( "Jignesh" );     ...
Image
History of Computers This chapter is a brief summary of the history of Computers. It is supplemented by the two PBS documentaries video tapes "Inventing the Future" And "The Paperback Computer". The chapter highlights some of the advances to look for in the documentaries. In particular, when viewing the movies you should look for two things: The progression in hardware representation of a bit of data: Vacuum Tubes (1950s) - one bit on the size of a thumb; Transistors (1950s and 1960s) - one bit on the size of a fingernail; Integrated Circuits (1960s and 70s) - thousands of bits on the size of a hand Silicon computer chips (1970s and on) - millions of bits on the size of a finger nail. The progression of the ease of use of computers: Almost impossible to use except by very patient geniuses (1950s); Programmable by highly trained people only (1960s and 1970s); Useable by just about anyone (1980s and on). to see how computers got smaller, cheaper,...
Image
How to set up a Facebook Page for your business Step 1: Sign up Go to facebook.com/business and click  Create a Page  in the top right hand corner. You’ll be greeted with several business type options including local business or place, brand or product, and cause or community. Select the type of business you’re creating the Facebook Page for. If your business type falls into more than one of the category options, choose the one your customers are most likely to think of when they think about your business. When you click on a business type, a box will open asking for a few further details, like the name of your business, your address, and your Page category. Categories are basically sub-types within the larger business category you’ve already chosen. When you start typing in the category field, you’ll see a list of potential category options to choose from. When you’re ready, click  Get Started.  Note that doing so indicates your acceptance of Facebook...