How to export data to Excel using ASP.NET MVC 5 without reloading the page?
The process of exporting the data into Excel is working. But I don't need to reload the page. When I try to press the Export Data to Excel the page is reloading. How to avoid this? Please, help. Thank...
View ArticleHow to add project reference to ASP.NET Core 1.0 MVC project
I have a ASP.NET Core 1.0 MVC app in solution X and I have some common projects (.net 4.5.2 class libs) in solution Y.I want to reference the projects in solution Y from my app, when I do so via add...
View ArticleVS2012 ProjectTypeGuids Lost when opening after installing ASP.NET and Web...
I've installed the "ASP.NET and Web Tools 2013.1" in my Visual Studio 2012.I have a solution which has an ASP.NET MVC 4 project with the following project type guids:<ProjectTypeGuids>...
View Articlevisual studio tooling for mvc in asp.net website project
I could not find a solution to enable Visual Studio MVC templates in an ASP.NET Web Site project (not an ASP.NET Web Application project). I know that an ASP.NET Web Application project is possible,...
View ArticleHow do I set the URL from localhost to localhost/applicationOne in Visual...
I have a web application that at the moment is running on http://localhost if I use Visual Studio to run the solution.I would like to change the settings so that VS starts running it on...
View ArticleMVC - Passing ViewModel between partial views with jQuery
I am having trouble passing a ViewModel between my partial views and the controller.What I basically want is to have one ViewModel which is being passed through different Views using jQuery and updated...
View ArticleHow to use list data in .cshtml file without using Model
This question might be very basic but i'm very new to C#.I am returning list data from controller without using model. I want to use this and want to create a table. // Mycontroller public ActionResult...
View Articlevisual studio unable to start program access is denied
I'm getting "Unable to start program http://localhost:[port] Access is denied." when I try to debug an ASP.NET MVC app. Here are some more details, some of which may not be relevant.This is happening...
View ArticleHow to only add entities that are not already tracked by the context?
Application Feature: Admin can load data from excel file, which will be stored in the database, initially, the database contains no data.when Admin imports the data, it will be represented as objects,...
View ArticlePopulate a select list ASP.NET Core MVC
I'm busy with an ASP.NET Core MVC application, and I'm trying to populate a drop down list. I've created a view model and I have added a method to my StoresController that returns a list of stores that...
View ArticleRead excel file data in MVC
I've did some searching, but haven't really found any good guides on how to do this.I want to be able to upload an excel file, but I don't want to store it on the server. I want to read it from the...
View ArticleBinding Multiple Parameters in an HTTP POST Request in ASP.NET Core .NET 6
I'm encountering a challenge while migrating from ASP.NET MVC "classic" to ASP.NET Core with .NET 6.In the past (ASP.NET MVC 4, ... 5), I could easily handle multiple parameters in an HTTP POST...
View ArticleWhat is the difference between MiniProfiler's request duration and action...
My application has action method inside a controller called Admin, which attempts to read the provided file, and write it's content to some destination, like a database.To measure the execution time,...
View ArticleMultiTenant Application Prevent Tenant Access Data from Other Tenant in...
I’m working on a tenant application and I was wondering how I can block tenant access other tenant data.First, let me expose some facts:The app is not free, 100% for sure the malicious user is a...
View ArticleHow to manage transactions in the service layer?
We’re developing a .Net application with the following architecture: presentation layer (using MVC pattern with ASP.Net MVC 2), service layer, data access layer (using repository pattern over Entity...
View ArticleHow to call Vue components in my .cshtml pages?
I have a ASP.NET Core MVC project in conjunction with Vue.js. I am only using Vue.js to make my pages reactive. My goal is to create a main vue instance based on a div in the _layout.cshtml file and...
View ArticleHow can remove one row in table with ajax
In this partial view I fill a table with a model an foreach loop, like below:<table id="tblGroup" class="table table-bordered"><thead style="background: #eeeeee;"><tr><th...
View ArticleCorrect way to pass base64 info in URL as query string?
I am sending some parameters in query string by converting them in base64 using method btoa(). I just want to know, do I still need to wrap the result into the encodeURI method to pass on the correct...
View ArticleHow to call jQuery popup window with a partial view in it?
in my MVC web apps, I need to create a popup window with a Partial view (contains webgrid) in it, The problem is the partial view data did not show on the dialogbox, I only see the title. it seems I...
View ArticleIs ok to deactivate a user account using GET http verb?
I'm stuck with a simple but tricky task that I'm developing on ASP.NET MVC 5 web app.I have a UserManager view which I need to add a button to deactivate the account of the current logged user. So I...
View Article