Questions tagged [asp.net-mvc]

The ASP.NET MVC Framework is an open source web application framework and tooling that implements a version of the model-view-controller (MVC) pattern tailored towards web applications and built upon an ASP.NET technology foundation.

0
votes
0answers
3 views

How to create a signature line with XCeedDocX

How can i create a signature line with XCeed DocX? I try to create it form xml by creating a empty docx and unzip it after i take the xml code from there but did not work because the signature is an ...
0
votes
0answers
6 views

Problem in back channel logout with .net mvc clients - identity server 4

Is there any help available for back channel logout for .net MVC clients. I am trying to implement single sign out for all clients. I am currently able to hit SignOutCleanup function of every client ...
0
votes
1answer
8 views

How to customize the create template view of asp.net MVC?

I have created a view of creating template like this way- https://i.stack.imgur.com/sMnjC.png And it auto-generated a page like this- https://i.stack.imgur.com/lGeeZ.png How to increase the width ...
1
vote
1answer
15 views

Google Charts Problem with loading multi column chart

I am attempting to create a multi column chart with google visualization, I am using two querys for this but it's not working. I get the following error in the console: Error: Row given with size ...
0
votes
0answers
14 views

How to active fa fa-check class if we have the Colour code in reday function using jquery

<div style="background:#000000" id="black" class="btn btn-circle btn-lg"> <i class="fa fa-check check" style="display:none;"></i> </div> <div style="background:#FF4136" id="...
0
votes
0answers
5 views

Communicating with NTLM auth in asp.net

How to communicate NTLM authentication with asp.net? I couldn't do the successful transaction on it.
0
votes
0answers
6 views

asp mvc5 Identity append cookies on login and clear on logout

I am working on ASP.net MVC5, using default Identity I have 2 child tables of AspNetUsers that are students and Teachers both with foreign key user_id referencing AspNetuser on login I am making 2 ...
-2
votes
1answer
9 views

Multiple Regex Validation against a value

I want to validate a text box input with below requirement Text must be integer Value of text must be between a predefined Max Value and predefined Min Value How we can do this in c# ?
0
votes
0answers
6 views

How to integrate aws s3 bucket through MFA using asp.net mvc c# programmatically

I am trying to add MFA (Multi Factor Authentication) in my application, where i am going to store object in aws S3 buckets. Please provide any sample code for authenticate the amazon aws service ...
0
votes
1answer
14 views

How do I change the value of a select list on change function of another select list? [duplicate]

I have this select and it has a change event bound to it. On the change of the value inside it, I want to select a particular element in another select list i.e. a particular option in that. However ...
0
votes
1answer
7 views

Register single class with Simple Injector

How can I register class who don't have Interface and after this get his services.Project is in .NET 4.5 MVC.I try use SimpleInjector for first time and make method ConfigureServices in Startup class....
0
votes
1answer
22 views

Handle “A potentially dangerous Request” in IIS

I have hosted an MVC web application in my local system. When my application was tested using a VAPT tool by external Auditors, they discovered an error when they accessed the application using the ...
1
vote
1answer
24 views

Why custom properties for IdentityUser custom class are always null

I have a UserManager for my custom Identity user: private readonly UserManager<CustomUser> _userManager; Which has a collection of Subscriptions, public class CustomUser:IdentityUser { ...
-1
votes
0answers
11 views

On Microsoft AD external login after cookie expires loops - ASP MVC

I have integrated Microsoft AD External Login On ASP MVC. I am using Asp Identity for authorization. It works fine. But After Cookie expires the browser automatically refreshes and getting stuck with ...
0
votes
0answers
16 views

How to create report viewer in asp.net mvc

i am very new to MVC , Can any one gaide me to crete report viewer in my project in asp.net mvc razer ? Thanks
-3
votes
1answer
18 views

i lost a cs controller file how i recover this in asp.net mvc5 [on hold]

I was working on asp.net project MVC , in visual studio 2017 express when suddenly my computer crashes. after I restart the computer. I start Visual studio and I find that 1 controller class file to ...
0
votes
0answers
9 views

How to use Order id in square-connect payment gateway in asp.net

I use this code, this is working done payment when I remove OrderId: "21071" this, but I want to use OrderId: "21071" this is "21071" my website order id that customer place order from my website. ...
0
votes
1answer
22 views

Client side functions doesn't call

I had lot of difficulties after upgrading signalR & .NET version. Previously I had 1.XX version now I have 2.4.0 signal R version. This question is directly connected with - https://github.com/...
0
votes
0answers
16 views

Trying to connect MVC app to remote host at IP xxxxxxxxx

I have been trying to connect my MVC app to a remote host at IP xxxxxxx. but what the error i am gettting is this : "InnerException": { "Message": "An error has occurred.", "ExceptionMessage"...
0
votes
1answer
44 views

At the javascript, get value from C#

Can I perform something like this? Situation I want to check the URL. if URL equal to http://sample.com, do this, otherwise, do that. What I did: In Web.config - <add key="ServerURLCloud" ...
0
votes
0answers
33 views

How to get parent row id

I'm creating an app that displays a list of documents and should be able to show attached scans of original documents. Tried to implement this via DevExtreme MasterDetailGrid and ASP views @(Html....
0
votes
1answer
20 views

Display whatever content this page have to another page using Ajax/Jquery

Whats wrong with this code? Index.cshtml -- has $(document).ready(function() { $("#main").load('CallScreen.cshtml #content'); }); <div id="main"> Content Will be here. </div> ...
0
votes
1answer
18 views

asp.net json copy data from table to another table

I'am trying to copy data from 'bareme' table to 'affiche' table then I will retrieve data from table 'affiche' public class db { MySqlConnection DefaultConnection = new MySqlConnection(...
0
votes
1answer
11 views

Javascript Callback function after download Excel

I need to send mail to user after downloading .csv file. I am not sure how to set callback function after file gets downloaded. $.ajax({ url: '@Url.Action("GetAllCustomer", "Customers")', ...
0
votes
1answer
24 views

MVC view cannot reference System.Numerics

Create a new Razor View project using MVC 5. Add reference to System.Numerics In my controller I can use BigInteger like this using System.Numerics; var bi = new BigInteger(100); But in my view, I ...
0
votes
0answers
35 views

Session[“variable”] getting overwritten when multiple users logged in

I'm facing an Issue with HttpContext.Current.Session["variable"]. It's getting overwritten when multiple users are logged in my web application at the same time in the same network. And the ...
0
votes
0answers
16 views

ASP.net MVC - Dynamic Bootstrap Progress Bar in View

I'm trying to use a progress bar in my web application to visually display the number of signatures a cause (petition) has relative to the target number of signatures. Part of the Cause model is a ...
0
votes
0answers
6 views

how to configure DbContext in unity section of config file

i have a generic repository implementation public class EFRepository<TEntity> : IRepository<TEntity> where TEntity : class { protected readonly DbContext _context; protected ...
0
votes
0answers
12 views

How to use default output formatter when controller action results in BadRequest

I have a custom output formatter for producing csv output when accept header comes as text/csv. By default json format is used in cases no specific accept header is used as this is default dotnet core ...
0
votes
2answers
36 views

How to cache method returned value in C# MVC

I'm building a web app which is selecting a lot of information from the database, and returns it. I'd like to store the returned value from the method which returns the tables from the database for 15 ...
2
votes
1answer
36 views

Can't get Route to work in ASP.Net Web API 2 when inheriting Controller

I'm trying to get this to work in my ASP.Net Web API 2 application. You will notice that this Controller inherits Controller. This is because I need to return a View instead of JSON. [RoutePrefix("...
0
votes
1answer
27 views

Form tag is not being populated

I am trying to get reference to my form based on form id using jquery but it is failing to reference the form when I use in developer tools.Any help in much appreciated. @model Models.ViewModel @...
-1
votes
0answers
17 views

asp.net MVC 5 - Unable to access items in list, in view

I'm making a web app in MVC similar to Change.org, where users can create causes for other people to sign. In my cause index view I am trying to display a list of people who have signed the caused. I ...
-2
votes
1answer
47 views

Object reference still returning null even with IsNullOrWhiteSpace? [duplicate]

Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more ...
0
votes
1answer
15 views

Error while using Kendo Multi Select dropdrown in bootbox dialog in MVC

I am trying to use MultiSelect dropdown in bootbox dialog in MVC but it is not working for me. I have tried putting the following code in bootbox.dialog in message @(Html.Kendo().MultiSelect().Name("...
0
votes
0answers
19 views

Adding child entity works locally but not on live Azure site

I have a web app controller action that is creating a child entity. I have a Location model with a LocationPic collection. I'm trying to add a new LocationPic to an existing Location. Locally this ...
0
votes
1answer
24 views

Is there any way to reload an asp.net core application using dotnet-cli?

I am using visual code and I am looking to reload the web application once I make any changes within my MVC code files. I know we can Ctrl+C to shutdown the app and and then reload by typing dotnet ...
-5
votes
0answers
32 views

Hide and show different elements [on hold]

I am developing na ASP.NET application and I have a dropdown login box in the upper right corner. After login, how can I hide the username to show the login again?
0
votes
0answers
21 views

Export DataTable object to excel sheet long String formatting issue

i have some troubles when i export DataTable to excel, i have a cell that contain max 20 caracters as string , when i get excel file it shown like scientific format, but i want to show all the string ...
2
votes
1answer
22 views

how to get current page from url excluding query string parameters

How to get current page URL excluding query string parameters. My URL is like this https://mywebsite.com/myproject/detailspage?id=2812 I want to get only https://mywebsite.com/myproject/detailspage. ...
1
vote
0answers
24 views

RedirectToAction Hanging Intermittantly in Production Environment

We have just deployed some code to a production environment (on AWS) and intermittantly see hanging which ultimatley results in an error (the page can't be reached, or no response along those lines). ...
-1
votes
0answers
18 views

Facebook integration post issue in C# MVC

I am using graph api for Fb-Post functionality from older version by using the following scopes 'publish_actions' and 'user_posts'. Currently i updated the graph to latest version i.e v3.2, in this ...
0
votes
0answers
12 views

Genetic Algorithm From Desktop Application To MVC

I have implemented a GA .NET C# Desktop application with the classes: Population Individuals Genes static class to control the DB access static fitness function class GA class to start the process ...
0
votes
1answer
15 views

MVC controller with 2 parameters for filtering

Here is my controller. When "mens" is passed into the URL(http://localhost:62498/Apparel/Mens), it renders the viewModel with mens apparel. There are many items on the page, which I would like to ...
0
votes
0answers
21 views

SmtpClient.SendAsync() and IDisposable in ASP.Net MVC5

At the end of one of my controller methods, I need to loop through a collection and fire off emails based on business rules. I do not want this process to block the return from the controller, as ...
0
votes
0answers
11 views

C# Identity cookie causing network related issues

I have a login cookie for when users login, and it lasts for 5 hours. The cookie upon which user logs in and it's logic are like following: public void Configuration(IAppBuilder app) { ...
0
votes
1answer
21 views

Can Html.Partial() accept a ViewBag to determine the partial view to render?

So I'm using Html.Partial() to render a partial view. This is a very basic MVC app to help me understand partial views and MVC as a whole. I have a form that has a dropdown which changes what is ...
1
vote
0answers
20 views

View Actions not Redirecting to Port set on IIS Server

I'd like to know how to set up the default port for the request/URL link. Currently at work we first develop the application offline (using VS Development Server/IIS Express), then we publish to the ...
0
votes
0answers
17 views

windows authentication and individual authentication in one project

I'm using asp.net MVC 5 i just was wondering if I can use windows authentication and individual authentication in one project. Means I would like to switch pro grammatically during the run time. Is ...
0
votes
1answer
24 views

Callback to client app after sign out - Identity server 4

I am trying to callback a .net framework client action method after sign out. For this I am trying to send a PostLogoutRedirectUri from a client on sign out. Problem I am facing is when suppose I ...

http://mssss.yulina-kosm.ru