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

How to learn whether a user password is expired or not in Active Directory?

In my ASP.NET MVC (C#) project I must learn whether a user password is expired or not? I found some answers about that on the internet but they didn't be useful for me.The first way to do using...

View Article


Command, CommandHandler and CommandInvoker

I recently saw a new pattern (new to me) in an open source ASP.NET MVC 3 project that hase many Command, CommandHandler, and CommandInvoker -with their interfaces- and I can't understand the pattern!...

View Article


Apply CSS style to cshtml input control that uses asp-for [closed]

The task is styling a contact page, Razor cshtml. <input /> controls revert to base styling as soon as asp-for="@Model.name" or class="form-control" is added to the control and CSS styling is...

View Article

How to get local IP address behind the proxy

I am using this extension method to track the user's IP address:public static string GetUser_IP_Address(string input = null){ string visitorsIpAddr = string.Empty; if...

View Article

get element by Id Using Razor syntax

is it possible to get an HTML element by it's Id in a Razor Code block? for example some where in a view this element exists. <Input id='NameField' type='text'>and further down in the view there...

View Article


MVC : How to clear session and close the current browser tab on click of...

I am trying to clear the session and the close the browser tab on logout link click. Please help me to do this.Thanks in advance

View Article

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
Browsing index pages (4595 articles)


Latest Images