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
16 views

Web.config authorization issue

I'm experimenting some issues with my web.config authorization configuration.I just want to allow any user to access on the "lost password" and "create account" pages, all other pages need to be ...
0
votes
0answers
8 views

Dedicated ActionResult (or page) for OWIN Authentication

I have an MVC application, and I have added some authentication methods to my startup, such as google, facebook, and some others. Among them are SAML and WSFed, and I would like to prevent the SAML ...
0
votes
0answers
17 views

font in image is not being shown

I have an image with some empty space on it. I have to add dynamic data from sql on to the image and during that process there should be a specific font applied to the dynamic text.The font is old ...
1
vote
2answers
31 views

Regular expression in RegularExpressionAttribute behavior

I am using this regular expression: @"[ \]\[;\/\\\?:*""<>|+=]|^[.]|[.]$"First part [ \]\[;\/\\\?:*""<>|+=] should match any of the characters inside the brackets. Next part ^[.] should ...
0
votes
0answers
13 views

Error when Filter data: 'There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'CountryIdSelected'.'

When i want to select data with a dropdownlist using method POST and ViewModel I have the following error. System.InvalidOperationException: 'There is no ViewData item of type 'IEnumerable<...
2
votes
1answer
13 views

User-Defined Table Type insertion causing conversion error

Not a duplicate of User-Defined Table Type insertion sometimes causing conversion errorI have a user defined table type:CREATE TYPE [dbo].[udtImport] AS TABLE(Name varchar(256) null...
0
votes
0answers
16 views

Calling html with Ajax request from js file OR using Razor methods

I am not sure if the title of my question is ok. I tried to google it but there is not any topic about it.I am using VS 2017 with MVC project, i have faced two ways to call view (html):1st way-...
0
votes
1answer
25 views

Check if jquery function name is unique (and html id)

I have a MVC ASP.net project (in Visual Studio), which becomes bigger and bigger.Is there a way to check if a jquery function is unique ? For example, I have a function Foo() and I would like to ...
-2
votes
0answers
14 views

How can admin create new user and send email to user to set his new passowrd in ASP Net Core MVC

I'm using Asp.Net Core MVC. In my application I want admin to create new users then newly created user received email to set his or her new password. How can i implement this part?
0
votes
1answer
43 views

How to dispose the ContextDB class automatically after any query done using it

ASP.NET MVC 5 Project.I know that the best practice of using EF context object as the followingusing(var context=new ContextDB()){}But I am working with a large existing project which not ...
0
votes
0answers
12 views

Format in CSV OData endpoint output

I'm developing a OData endpoint using OData v4, Microsoft.aspnet.odata (v7.0.1); Microsoft.aspnet.webapi.odata v5.3.1 and Microsoft.data.odata v5.6.0 as libs.My question is the following: I have to ...
0
votes
0answers
20 views

MVC ASP NET Core, Keeping Routing URL with ActionLinks

I'm struggling to keep my routing links when using Html helper ActionLinks.I've set my routes similar to this:app.UseMvc(routes=>{routes.MapRoute(name: "test1",...
-1
votes
1answer
22 views

Filter ViewModel not works ASP MVC

I want to filter data with dropdownlist.For that, I created a ViewModel . I can display the data but the filter doesnotwork.When I select a country for exemple, I have the list of all the country in ...
0
votes
0answers
15 views

How to change value of one dropdown based on selection of other dropdown in MVC using Ajax and Razor?

In this example I am trying to use two dropdowns. The option elements generated by a Razor syntax (of second dropdown) should depend on whatever is selected in the first dropdown. So the first thing I ...
0
votes
1answer
20 views

Post Form with object collection

I need to upload Form, which contains several select lists of the same type.The form look like thisView<form asp-action="http://stackoverflow.com.mevn.net/UpdateFilter" asp-controller="Home" method="post">...
0
votes
0answers
9 views

Hosting and close a single-use connection via ASP.NET WebService

We have a supplier service which we access via a TCP/IP connection, but we can only ever have a single login active at any time. As this service is accessed from several apps we set up a WebService (...
0
votes
0answers
14 views

Unable to reload javascript cache even after versioning

I have a versioned JS file, in my asp.net mvc application, whose version changes everytime I change the version of the application - rather simple approach.Now, it has been a while since I made any ...
1
vote
1answer
26 views

select all checkboxes in a razorview table

I want to select all the checkboxes in table on clicking the header checkbox. I don't know how to do that. This is what I have done so far.<table class="table" id="myTable"><...
0
votes
1answer
17 views

MVC reusing model

I have an MVC Web Application which uses a form to get a postal code from the user, which then queries an external web service and returns a list of addresses to the view. I had a previous issue ...
-1
votes
1answer
43 views

C# Interacting with Database In async way, not working.

I just wanted to create a dummy ASP.NET MVC project where i wanted to explore more about async & await.I created async methods in DB access Layer and Repository Layer and i also make sure that the ...
0
votes
2answers
36 views

ASP.Net MVC 5 Render PDF in Browser from Byte[] C#

I am working with Kendo MVC and I want to render an uploaded PDF into a Tabstrip. When getting the PDF file to show in the tab, I am calling my controller and subsequent service, getting the file ...
0
votes
0answers
8 views

asp mvc codefirst migration do not track changes in ApplicationUser

I have created mvc application, it created user AspNetUsers and other authentication related tables and models etc.by default it uses DefaultConnectionI created MyConnection for all my models, and ...
0
votes
2answers
27 views

Why does $post not work but $ajax works on the asp.net web api controller?

I interested in knowing why does the $.ajax() request work but the $.post() returns just an empty array on the controller.controller[Route("api/actuary/{actuaryId:long}/documents/")][HttpPost]...
-1
votes
0answers
12 views

fetch user's data from two tables (payment table and withdrawal table) in mvc [on hold]

I need a partialview that fetches data from two tables and sort them by date in mvc5.payment table:UserID paymentid DepositDate Amount17 1011 2018-07-28 100.00...
0
votes
1answer
19 views

paging and sorting issues having multiple grid.mvc grids in one page

I am trying to add 2 grid.mvc in the same page (with the same structure) and fitering, shorting and paging apply to both grids. I cannot to find proper documentation...but i have seen people uses ...
0
votes
1answer
61 views

Continue method executon without waiting for other method execution

I want to call a method inside some method and do not want the process to wait or take time on other method completion.like thispublic ActionResult Insert(int userId){_userService.Insert(...
-6
votes
0answers
37 views

How to use one view with two actions at the same time in mvc [on hold]

Is it possible to have one view that shows data from two actions at the same time ? if possible can any one please show me how this is done .Thanks in advance for your help .
1
vote
3answers
38 views

AJAX calling different action on controller

AJAX method :$(".GetF").click(function (e) {e.preventDefault();$.post('@Url.Action("test1", "flyer")', { "selectedIds": "1"}).done(function (data) {...
0
votes
1answer
13 views

DocuSign : DocuSign.eSign.dll after upgrading to 3.1.1.0 stop working for ApiClient.GetUserInfo

I have integrated docusign 3.0.1 with my c#.net project and its working fine but as we upgrade the docusign to 3.1.1.0 it start giving me the below error.{"Error while requesting server, received ...
0
votes
1answer
18 views

How can I create Property in domain class that won't be added in table when I run migration

I want to use Confirmpassword property in my domain class to check user enter correct password, But I think when I will run migration it will aslo create Confirmpassword column in table. How can i add ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,