Questions tagged as 'asp.net-mvc'

1
answer

Scripts stop when I open Modal in a Partial View for the second time

My first question here. I'm developing my first system using Asp.Net MVC. In a View I call a Modal whose modal-content is a PartialView that contains scripts (jQuery). When I open the Modal for the first time everything happens as e...
asked by 24.03.2018 / 15:35
0
answers

Get directory to save file

I'm developing a system, and in that system, I generate a PDF report from some information, I'd like to know, how do I open a screen that looks like filedialog , but to select only the directory, so that when you generate the report, the u...
asked by 21.03.2018 / 13:39
1
answer

Why is not my javascript working in the _Layout.cshtml file?

I'm doing a website in ASP.NET MVC, and I'm trying to make a really creative menu, so I already have everything ready that tested in html and css is usually working, but here in ASP NET MVC I'm not getting it to work, I think I'm doing something...
asked by 13.03.2018 / 22:31
0
answers

Error in connection to oracle database after it does publish in azure with visual studio

I'm developing a project in asp.net with Oracle data base 12c. The connection to the database, locally, works. It does all the CRUD functions. I am also using azure services (project requirement) for both the bank and the website. When I publish...
asked by 12.03.2018 / 20:25
0
answers

ActionResult Create error

I have a exception , in the method of creating an object with a foreign key, but it points the error in my db.SaveChanges() with the following message:    DbUpdateException was unhandled by user code. [HttpPost] [ValidateA...
asked by 12.03.2018 / 20:07
0
answers

DataType.Custom

I'm developing in Asp.NET MVC Core and I need to use DataType to CNPJ , I saw that it has DataType.Custom , but I could not understand how to use it. [Display(Name = "CNPJ")] [DataType(DataType.Custom)] [RegularExpres...
asked by 21.03.2018 / 05:36
1
answer

Pass value from view bag to view

I'm trying to pass value from a view bag to the view create. Controller public ActionResult Create() { ViewBag.BanhoTosaId = new SelectList(db.BanhoTosas, "BanhoTosaId", "Tipo"); if (ViewBag.BanhoTosaId.SelectedValue != null)...
asked by 08.03.2018 / 12:51
0
answers

The sequence does not contain elements just inside the menu

I made an ASP.NET MVC application that receives some data via API, handles and displays on the screen. The data is correctly received, and I can display them normally, except for one place: The menu for mobile devices within _layout.cshtml...
asked by 09.03.2018 / 20:57
0
answers

What is wrong with this method?

I am creating an asp net mvc application, I created a domain class with: public class Parcela { public int parcelaId { get; set; } public decimal valor { get; set; } public DateTime vencimento...
asked by 07.03.2018 / 17:12
1
answer

Not null parameter in Int fields

I'm creating an application in Asp.NET MVC (I'm using the Scafffolded feature), however, all the fields are being filled in, how do I remove this parameter? Note: I've tried unchecking the "Allow null value" option in the database, but withou...
asked by 07.03.2018 / 13:29