File Upload in Database Using Entity Framework Code First MVC
Hi, In this blog I am writing sample code to store file name and path into database table using Entity framework code first approach. Download Source Code Step: 1 First Create Controller named Home Controller . Step 2: Create Index.cshtml view into Index Action of...
AngularJS Single Page Application(SPA) or different view on a single view Example
Angular Multiple Views and Routing Each and every application having different view i.e, contact us , about us , Home and feedback.Now angular JS provides new feature of SPA(single page application) . SPA means different web pages can be seen at a single place without...
ViewData, ViewBag, TempData and Session Example in asp.net MVC
Data Passing techniques from a controller to View. View Data and View Bag are Data Dictionary objects. ViewData: View Data is accessible using string key value and need typecasting. ViewBag: Dynamic type property, Doesn't require typecasting TempData: TempData is a...
Bootstrap menu bar example
Bootstrap Default Menu In bootstrap , menu can be created using div tag with class “navbar” navbar-inverse: This is used when we do not want default coloring(transparent) , It will create menu with black background. navbar-fixed-top: This class is used when we want to...