Showing posts with label c#. Show all posts
Showing posts with label c#. Show all posts

Sunday, 16 May 2021

Render the view outside of view folder in ASP.NET mvc

 In normal case your project views(.cshtml) are in view folder of project but if you want to render the view from another folder with the same functionality of views. Then you have to just copy the web.config of views folder to your new folder and add the respective path like this.

View("~/Content/itemtemplate/Adtemplate.cshtml", model); 



Tuesday, 11 May 2021

About Microsoft technology blazor and its library, component

Blazor is a .NET web framework using C#/Razor and HTML that runs in the browser with WebAssembly.


You can find the links for reading and sample projects from below link.

https://github.com/AdrienTorris/awesome-blazor 

Monday, 10 May 2021

This project references NuGet package(s) that are missing on this computer.

Find the .nuget folder in your project folder. Sometimes when you copy the project you might be miss that folder because of its hidden in your project directory.

If you dont miss the folder and still you get the error, hope you can find solution from this link 

Saturday, 20 February 2021

Datatable does not contain a definition for asenumerable

 Add System.Data.DataSetExtensions from "nuget" or "add reference"

using System.Data.DataSetExtensions;