Quantcast
Channel: Active questions tagged asp.net-mvc - Stack Overflow
Browsing index pages (4589 articles)
↧

Unable to read document OfficeImportErrorDomain error 912 on generaring .xlsx...

I am using OpenXMl to generate Excel file (.xlsx). I am able to open generated file (.xlsx) on my computer but I can not open it on my Ipad. It is not password protected even, but I do get the 912...

View Article


"Environment.GetEnvironmentVariable" IIS recycle old value [closed]

I have an ASP.NET MVC application hosted on IIS that reads an environment variable using:Environment.GetEnvironmentVariable("MI_VARIABLE")The application also has a .env file inside the deployed...

View Article


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 Article

How 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 Article

VS2012 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 Article


visual 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 Article

How 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 Article

MVC - 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 Article


How 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 Article


visual 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 Article

How 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 Article

Populate 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 Article

Read 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 Article


Binding 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 Article

What 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 Article


MultiTenant 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 Article

How 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 Article


How 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 Article

How 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 Article

Correct 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 Article
Browsing index pages (4589 articles)


Latest Images