Questions tagged as 'asp.net-mvc'

2
answers

Validation with data annotations ASP.NET MVC works but does not display message

Good evening! I'm having a problem in my project where I'm trying to validate with date annotations and it's working, I just register in the database if I answer the validations, but the problem is that the messages I put to display along the da...
asked by 12.08.2017 / 02:17
1
answer

Error in .js file

Include an .js file in an MVC project. my .js file looks like this: $(document).ready(function() { function escondePanel(painel) { $("#pnPessoal").css("display", "none"); $("#pnContato").css("display", "none"); $("...
asked by 12.08.2017 / 04:03
2
answers

How to implement the Gentelella Bootstrap Admin theme? [closed]

I'm starting now with web development in Visual Studio. I have already understood the MVC, I have some knowledge of HTML and I started to study the bootstrap. I discovered this beautiful template Free Bootstrap 3 Admin Template Who has an exam...
asked by 04.07.2017 / 15:42
2
answers

How to not allow the user to access the previous login / registration page after logging in or registering

I'm developing an ASP.NET application and when the user logs in and clicks the browser button to go back he can access the login / registration page, even though I do the verification of the user's key logged in to the session. Here are the prin...
asked by 20.06.2017 / 21:23
1
answer

ASP C # Bootstrap - Open MasterPage modal

I'm learning to build websites with ASPX C #, using Bootstrap. Before, I have already researched everything and I have not found a solution to the problem I am encountering, so please, if anyone can help me. In my MasterPage, I have in <...
asked by 20.06.2017 / 17:47
1
answer

Is it a good choice to start a project with Diagram Use Cases, then Class Diagram?

I have a software idea, but I do not know if I should go directly to the class diagram and then the encoding or if I should first use a use-case diagram. I will work on this software alone. It is a long-term dream that I will make in my spare ti...
asked by 13.06.2017 / 04:35
1
answer

Pass parameters to the controller via ajax

Personally I did not handle anything in jquery / ajax and wanted to pass a parameter to the controller. I have a modal that opens only to ask if the person is aware of the cancellation where the only field that needs to pass is a hidden with...
asked by 13.06.2017 / 23:15
1
answer

How to sort the dropdownlist?

How can I sort the DropdownList ? <div class="form-group"> @Html.LabelFor(model => model.id_pessoa, "Pessoa", htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10">...
asked by 18.06.2017 / 16:27
1
answer

How to recover date from SQL Server correctly? [closed]

I created a simple CRUD using the ASP.NET MVC and I can save my records normally. If I looked in the database, my date ( DataCriation ) was stored like this:    2017-06-01 00: 01: 23,750 But when I try to edit the same record with a...
asked by 06.06.2017 / 00:01
1
answer

Error traversing table html with jquery

I have a HTML table and I need to get the values of value='1' data-chkIdProcessamentoDiario='1' data-chkIdRegistro='1' and assign in an array, but the problem is that each does not go through table html , although the browser l...
asked by 31.05.2017 / 22:24