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.

-1
votes
0answers
9 views

How to expand div element when clicked on item from dropdown menu list automatically?

What I want is that if I click on IT from dropdown then it should automatically expand <div id="Filters1" and so on. Please guide me where I am getting wrong._Layout <a class="dropdown-...
-1
votes
1answer
15 views

Viewbag type datetime is null but View show empty string and cannot show data (MVC)

I have some problems.I got VIEWBAG from controller and specify and show data as CodeI check on Jquery it show "Cannot perform runtime binding on a null reference"@ViewBag.detail.from_date_go IS ...
0
votes
0answers
7 views

Web API Request.Content truncating first 3 characters

We are getting empty model object in Post action in Web API ( Even client is sending valid json).When we try to log content using Request.Content.ReadAsStringAsync().Result; in Custom attribute [...
0
votes
0answers
10 views

301 Redirect in Sitecore or IIS URL Rewrite

I am working on one Sitecore project on 301 redirect for our website. Right now our redirect chain is http://example.com/ >> http://www.example.com >> https://www.example.com >> https://www....
0
votes
0answers
8 views

Is there a way to make RazorEngine throw an exception rendering a template using JSON as the data model?

I am attempting to design an email templating system in ASP.NET using RazorEngine as my templating language. RazorEngine takes an email template (as a string or in a .cshtml file) and combines it with ...
-1
votes
0answers
22 views

asp.net mvc and api - architecture [on hold]

I Need some advise, I need to create a backend website for admin and a public api for a mobile app. I tried to create an asp.net API project with areas for mvc controllers, but I need website ...
1
vote
0answers
11 views

How to setup CodeFirstStoreFunctions to query Table Valued Function

In my scenario, I am using MVC 5 with .NET Framework 4.6.1 and Entity Framework version 6. I need to query TVFs (Table Valued Functions) in my SQL Server database. I found many different SO answers ...
3
votes
1answer
43 views

asp.net core 2.0 bind model with decimal value

I've been looking for a solution to this case for hours, and I did not find anything that worked out for me.Here we use the comma for decimal separator, and when I send a value like "15,50", in my ...
0
votes
1answer
27 views

List<model> of ViewModel is null in POST method

I am working on the following. When I run the code, I am able to get the data in the correct form from the database via GET method and I am able to display it correctly in the View. However, on ...
1
vote
0answers
11 views

Getting HTTP ERROR 404 after publishing ASP.NET application in Azure App Service with Visual Studio 2017

I have an application in ASP.NET Framework 4.6.1 that works fine when running in my local environnent using Visual Studio 2017 (version 15.7.27703.2035).On server side, the same application is ...
0
votes
0answers
10 views

Action's Response Changed Migrating to Different Project

In a new MVC app (ASP.Net 4.6.2), I created a webapi endpoint which (on the server) populates a word doc and sends it back to the browser as a Blob. I call this endpoint via the fetch api. I have ...
0
votes
0answers
11 views

Customization - Way To Implement Custom Toolbar To The TinyMCE Editor

I've created a sample toolbar for TinyMCE editor and it's out of the editor right now (Will be using in an ASP.NET MVC project). Here is the link that could be checked:Custom Toolbar For TinyMCE...
1
vote
1answer
34 views

ASP.NET MVC Entity Framework Database not being created

I am trying to build a phonebook in ASP.NET MVC using Entity Framework but my code is not generating the database: I have the following classes: Contact.cspublic class Contact{[...
0
votes
0answers
17 views

If I pass a database context from a controller to a class, will the context be disposed?

I'm using ASP.NET MVC and at the bottom of my controller is the standard Dispose method that disposes the db context automatically for you. I need to pass the db context from this controller to a ...
0
votes
0answers
18 views

System.DirectoryServices.AccountManagement PrincipalContext with multiple application under default website in IIS

I am setting up a new authentication using Active Directory on our domain, but we have older applications that run under the main website that are in .Net 4 and .Net 2 and sadly even a few items still ...

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