This is a quick response post to the blog reader ‘V Patel’ who asked this question yesterday. Here is the question:
31 Oct 2012
28 Oct 2012
In this quick post you will learn various ways to filter records in MVC. Before starting let’s have a quick look at a controller and view page that I will use in this article. I will be using the SQL Server Northwind sample database in this article, you can download it from the Microsoft website and set up the same project to explore it.
24 Oct 2012
23 Oct 2012
Today I worked on a project where I required to display image on the web page. As you know there is not a Html Helper for Images yet. Look at the screen, we can’t see an image here.
22 Oct 2012
HandleErrorAttribute in MVC is used to display friendly error pages to user when something goes wrong in the application. Let’s create a simple exception in the application to explore HandleErrorAttribute.
19 Oct 2012
There are various ways to pass data from a Controller to a View. I'm going to discuss how Controllers interact with Views and specifically cover ways you can pass data from a Controller to a View to render a response back to a client. So, let's get started.
17 Oct 2012
This is just basic article and I’m not going to say anything new here but I will say things in my way. The very well-known question newbies ask about MVC and Entity Framework is, how does a conceptual database model target the names?
16 Oct 2012
When we have an ASP.NET MVC View that accepts user input and posts those inputs to a server we have the option to use the built-in Model-binding features to provide more control and security, we can restrict the properties that are allowed to be bound automatically.
There is a very small bug in the MVC 4 Empty Template that can be seen when you create a new MVC 4 Application with an "Empty" template and start adding views for CRUD operations (using scaffolding). And when you run the application and try to navigate (to http://localhost:port/controller/Create or http://localhost:port/controller/Edit) in "Edit.cshtml" and "Create.cshtml" views, you get the following error:
15 Oct 2012
Creating ASP.NET WebApplication/ASP.NET MVC Application Membership Database on SQL Server rather than LocalDb
I was asked this question from one of my blog reader: How can a DB be created in SQL Server rather than locally (LocalDb) which is default?
13 Oct 2012
Is it really necessary to remove our original accent (क्या वास्तव में अपने मूल लहजे/स्वर को दूर करने की आवश्यकता है)?
Look, I’m not a speaker and even can’t guide anybody on such questions. Now, I would like to share complete chat with the great people when I asked a question about Bihari Accent on Facebook. I received really great amount of inputs/feedbacks from industry leading IT experts and they all have huge experience in the same. Once again, I would like to thank to all of them for their inputs/feedbacks. Actually, I’m bit shy and lack of self-confidence that causing all that but it will got out with the time, for sure. For example, I am writing this post in English and I learned this with the time. Now, let me share the screenshot of the question I asked and entire valuable replies.
9 Oct 2012
Unable to retrieve metadata for 'MusicStore.Models.Album'. Using the same DbCompiledModel to create context against different types of database servers is not supported. Instead, create a separate DbCompiledModel for each type of server being used.
8 Oct 2012
Microsoft SQL Server Compact Edition is an embedded database system that allows us to integrate it in our Web, Desktop and Mobile applications.
The Entity Framework can automatically create/update/drop databases when the application runs. We can specify that, this should be done every time application runs or only when the model is out of sync with the existing database or in other word it runs whenever model changes. You spent time to insert records in database and when you made any changes in model, Entity Framework deletes your database as well as records.
5 Oct 2012
Entity Framework 5 brings number of improvements and Mapping Table-Valued Functions (TVFs) Support is one of them.
4 Oct 2012
2 Oct 2012