Category Archives: ASP.NET MVC

ASP.NET MVC

Using Entity framework to call Oracle Stored Procedure in ASP.NET MVC3

This tutorial I will intro about how to using Entity framework to call Oracle Stored Procedure in ASP.NET MVC3. In this tutorial I use oracle database with username is SCOTT. Requirements: Oracle client 11g ODAC 11.2.0.3 for visual studio. you … Continue reading

Posted in ASP.NET MVC | 4 Comments

ASP.NET MVC 3: Save .pdf file to database and download pdf file from databse.

The article previous I was introduce about Using Microsoft Report Viewer in ASP.NET MVC3. In this article I will introduce about how to save .pdf file to database in ASP.NET MVC 3. 1. Create a new database to store pdf … Continue reading

Posted in ASP.NET MVC | 3 Comments

Using Partial View to implement Search Bar in ASP.NET MVC3

In this article previous I was introduce about Using Partial View in ASP.NET MVC 3. To day I will introduce step by step how to use Partial View to implement Search Bar in ASP.NET MVC3. 1. Create a new project … Continue reading

Posted in ASP.NET MVC | 2 Comments

Using MS Report Viewer in ASP.NET MVC3

This article I  will introduce step by step how to use Microsoft Report Viewer in ASP.NET MVC3 1. Create a new project with View engine is ASPX and set named MvcApplications.MSReportViewer 2. Add references Microsoft.ReprotViewer.Common and Microsoft.ReportViewer.WebForms to project. You … Continue reading

Posted in ASP.NET MVC | 6 Comments

Error: “The report definition has an invalid target namespace ‘http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition’ which cannot be upgraded.” when run MS Reportviewer and ASP MVC3.

Solution to fix this problem: Turns out the issue was my “C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\ReportingServices\Microsoft.ReportingServices.targets” file had somehow changed. The top of my file was: <Project xmlns=”http://schemas.microsoft.com/developer/msbuild/2003″&gt; <UsingTask TaskName=”Microsoft.Reporting.RdlCompile” AssemblyName=”Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”/> And it should have been: <Project xmlns=”http://schemas.microsoft.com/developer/msbuild/2003″&gt; <UsingTask … Continue reading

Posted in ASP.NET MVC | 5 Comments

Error: Server Error in Application "DEFAULT WEB SITE" when run asp.net MVC 3 in IIS 7.5 and Windows 7 64bit

When I run website in IIS 7.5 with Windows 7 64bit I have receive error message: Solutions: To fix this problem you implement by steps: 1. Open IIS 2. Click Application Pools/Right click ASP.NET v4.0 in the list of Application … Continue reading

Posted in ASP.NET MVC | 3 Comments

Using Partial View in ASP.NET MVC3

1. Create a new project and set project name is MvcApplications.PartialView 2. Create a new class Product in Models folder 3. Create a new ProductViewModel in Models folder 4. Create _FeaturedProduct partial view Right click Shared folder –> add View. … Continue reading

Posted in ASP.NET MVC | 2 Comments