Questions tagged as 'asp.net-mvc'

1
answer

ASP.NET RAZOR - WEBSITE project running on IIS (Homologation or Production) does not contain the HEAD TAG

I have a problem in my WEB project, which when run by an IIS from a server, tag html HEAD does not appear closed and when executed locally it appears correctly. Detail, when inspecting element in the browser it appears, but when pr...
asked by 28.03.2018 / 21:18
0
answers

Adjust the alignment of the dropdownlist in a navbar Bootstrap

I do not know if I'm doing this correctly, but I need to create a dropdownlist in my navbar to show a list of branches that will come from the database. The problem is that when I insert it, it is misaligned vertically. I believe it is because o...
asked by 05.04.2018 / 03:14
0
answers

Add photo httpPostFileBase using web api asp.net mvc

I'm trying to add a photo to an employee's registry. All other data such as name, cpf, address and etc are registered normal, but the photo is not, I'm simply taking the name of the photo and saving the way in the bank as I did in other projects...
asked by 03.04.2018 / 15:55
1
answer

Helpers source code

Help source codes like TextBoxFor, for example, are available somewhere? I've already found customizations like this: public static System.Web.Mvc.MvcHtmlString DtxTextBoxFor<TModel, TValue> (this System.Web.Mvc.HtmlHelper<...
asked by 23.03.2018 / 14:29
1
answer

ViewBag and ViewData

I'm starting a career in development, and in the project here, I found a ViewData being used, and through my searches I can not update it in a ActionResult in the controller. I ended up testing with a ViewBag too, where I wa...
asked by 27.03.2018 / 16:13
0
answers

Modal ajax in asp net mvc, how to do?

Personal I'm using the asp net mvc template to create a website, it's in the one page style. In it I created a modal, so it is loading blank. See below how I developed: Here in my index.cshtml file: <div class="image-item">...
asked by 19.03.2018 / 22:42
1
answer

Receive integer value in field view

Personal I need your help. In my system I created a modal with data visualization pulling from the bank. I need one of these data to display only the integers, as an example in the photo. If 30.0 is required to display 30, if 265.0 is r...
asked by 16.03.2018 / 14:52
1
answer

Mask with ASP.NET Core MVC

I'm doing a job for college with asp.net core MVC , and I'm using entity to generate the view and queries in the BD. I need to put masks in the fields like CNPJ. I got searching on Google how to put mascara, but when I try to create a recor...
asked by 20.03.2018 / 02:57
1
answer

Beginform with several button in a form

I have form that has several buttons, 1 to delete via aja, 1 to edit via ajax, 1 to open report and I have 1 button for when it is clicked on wish to do the form post, the button of the post works problem is that everyone else is also called the...
asked by 16.03.2018 / 02:29
1
answer

Is it possible to have Authentication by IdentityServer4 and Authorization in the API, separately?

I recently asked a question on stackoverflow in English, however I may have expressed myself poorly and did not get the answer I wanted. Link in English . I have 3 different applications: IdentityServer which is my identity provider; Teac...
asked by 15.03.2018 / 23:27