Questions tagged as 'asp.net-mvc'

0
answers

Problems with HTML Responsive with ASP MVC5

I'm having trouble getting my page responsive, desktop is getting correct, as the picture shows: However,whentestingformobile,itlookslikethis(usingthetoolingooglechrometoemulatethescreenofamobilephone): MyHTMLis:@using(Html.BeginForm(FormMet...
asked by 08.06.2018 / 14:16
0
answers

Perform sorting by a given field of a given table

I have the following syntax The instruction below performs the ordering by the Lot Number field of the Batch var lvmLotes = db.Lotes.ToList () Where (x => x.DataAbate.Date == Search) .OrderBy (x => x.Library); p> I need to cha...
asked by 19.06.2018 / 15:20
0
answers

DropDownList in C # with HtmlHelper

I'm new here and also new to the ASP.NET universe. I'm having a hard time creating a DropDownList for a form on a web page with ASP.NET MVC and C # . I made a user registration form and one of the items needs to be DropDownList...
asked by 06.06.2018 / 14:12
1
answer

Add DropDownList value to the database

I wanted to put dropdownlist in my view where its List value was for the database, but I know only how to add values to DropDownlist with data from a table, I wanted to make a DropDownlist with three values without having to...
asked by 06.06.2018 / 15:16
1
answer

How to adjust the size of a generic Modal Bootstrap window according to the desired View

I have a generic bootstrap modal window that will open several views. The problem is that each of them will have a different screen size and currently, my settings stay fixed (style="width: 800px; height: 500px;") ... Is there any way I can chan...
asked by 01.07.2018 / 21:35
1
answer

ASP.NET MVC error circular reference when serializing object

Good afternoon dear fellows! I'm a beginner in ASP.NET MVC and C #, I'm developing a project and I've encountered a problem. Basically, it's a store registration system. I have two tables, one called Shops and another called Owners (Where, of...
asked by 15.06.2018 / 21:35
1
answer

Ajax POST does not execute the ASP.NET MVC action

   Controller Action public class EstabelecimentoController : ControllerBase { [HttpPost] public ActionResult ImportarEstabelecimentos() { var file = Request.Files["inputFileImportarEstabelecimentos"]; return Red...
asked by 15.06.2018 / 17:44
0
answers

Register with repeated fields, how to do it?

I have a system registry that I am developing that will have repeated fields, I would like help in this implementation. This screen is called Sequence that has the following fields Date Sequence Number Lot Name = A side | Type |...
asked by 03.06.2018 / 17:16
0
answers

Parameters passed to a web service - Asp .Net MVC

My problem is as follows, I am making an app in Xamarin Forms and I have to send two parameters to a web service developed in Asp .Net MVC, in case I would like to know how I can send these parameters (two strings) via URL only to test and see i...
asked by 14.06.2018 / 18:50
0
answers

Pass parameters to PDF

Hello Developers! This is my Controller public ActionResult PrintList() { return View(); } public ActionResult PdfJardimAtl() { var estrangeiros = db.Tb_estrangeiros_pe.Where(s => s.Tb_territorios....
asked by 07.06.2018 / 22:49