Questions tagged as 'mvc'

1
answer

ASP.NET MVC - How to upload a file with more than 5mb using ajax?

I'm using the following code to upload files: HTML: <form action="/Employee/FileUpload?UnityId=1&amp;ObjectId=1" data-ajax="true" data-ajax-failure="OnFailure" data-ajax-method="Post" data-ajax-success="OnSuccess" enctype="multipart/...
asked by 25.10.2018 / 22:50
1
answer

Serial ID not assigning to model id

I'm making a website that gets through a Webservice, the data from a dvd (from a colleague's website), and creates an offer with its information. I think I'm having a problem with MVC structuring and not with the framework itself. public funct...
asked by 17.10.2018 / 18:44
1
answer

Razor MVC - When using @using (Html.BeginForm ()) fields do not stand in front of each other

I'm starting to study MVC + Razor and in basic CRUD example, I'm trying to put the fields in two columns, as if they were using in HTML. But my code only works if I remove the @using (Html.BeginForm()) . Using @using (Html.BeginForm(...
asked by 09.09.2018 / 16:46
1
answer

Data sent to Model cleans while changing page?

A question that has come to me now, based on this post: Building Customizable Menu in ASP.NET MVC If I populate my MenuItem model when the user logs in, it will populate, for example, with the following "modules": -Products -Clients...
asked by 10.09.2018 / 20:14
1
answer

MVC CodeIgniter

I have a question regarding the passing of parameters between MVC. I'm developing email confirmation on a project. After clicking on the link to confirm sent by email, the system picks up by GET, the encrypted password and "I want to change t...
asked by 31.08.2018 / 21:20
1
answer

Error displaying accented words in View

Good afternoon, All words that have an accent on my system are being formatted wrong as in the example below:    Auto Inspection Where it was supposed to be an inspection car. How to solve this, knowing that I'm using C # with Razor an...
asked by 04.09.2018 / 19:52
1
answer

Validate date in editfor

I made a date mask and would like to know how I validate the date right there, ie, in the edit it does not accept data type: 23/16/9087 . This is my date editfor <div class="form-group"> @Html.LabelFor(model => model.dataNasc...
asked by 10.08.2018 / 23:06
1
answer

How to make a column with always fixed data in a DataTable? MVC JS

Hello. I have a DataTable that is returning BD values, however I need only one column to always have fixed values that will not come from the DB (in this case, it is a column with the months of the year). However, I can not change the structure...
asked by 31.07.2018 / 17:51
1
answer

Call function in PHP via Link using MVC

I am having difficulty / problem to request a function in PHP: Home This function below is located in a class inside the lib folder. Language.php <?php namespace app\lib; class Language { public function setLingCookie(){...
asked by 25.07.2018 / 15:09
1
answer

Block download in an audio streaming

I have an MVC Web application in which it picks up an audio stream according to the received parameters: public new ActionResult File(string q, string url) { try { var query = new GetFileQuery() {...
asked by 04.07.2018 / 18:43