Questions tagged as 'asp.net-mvc'

2
answers

Rename error message

Next model : [DisplayName("Data:")] [ValueParser("ptdateparser")] [AssertThat("DeadLine > Today()", ErrorMessage = "* Data deverá ser superior a data de hoje")] [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/mm/yyyy...
asked by 12.07.2018 / 01:27
2
answers

Set model property in javascript variable

I have an Action Usuario that displays user details among other actions that can be performed. I also have a javascript code that needs to part of setting a model property in the javascript variable. Here is the code below: @mode...
asked by 23.07.2015 / 20:44
2
answers

What can I use to replace input hidden in ASP NET MVC?

I have a difficult mission to pass a system of webforms to MVC, the system with webforms has many input hiddens that store basic information like session hash and user code, but as I, in my humble opinion, think half insecure and even laborious...
asked by 30.06.2014 / 14:26
2
answers

Save Field Auto [closed]

I have the following situation. In the Bank, I have the tables State, City, with the data properly registered and linked. In View I would like to put only a DropDown with the list of Cities, but I would like to automatically record the sta...
asked by 29.09.2016 / 20:04
1
answer

ASP.NET Text-Box Character Limiter

I'm trying to implement a character limiter for this text-box, but I have no idea how to do this. It is a page of insertion of posts in a portal and the title must have a limit. <div class="form-group col-md-12"> <div class="form-...
asked by 25.08.2017 / 21:56
1
answer

Render HTML5 with Razor

According to W3Schools an input does not have ex tag closing <input type="text" name="firstname" value="Mickey"> source: link In my ASP.NET MVC project I have the following command @Html.TextBoxFor(model => model.Erro, new {...
asked by 10.03.2016 / 21:01
1
answer

ASP.Net and C # - automatic email sending

In the site that I assumed from a client, developed in ASP.Net with C #, there are registered employees with a defined admission date. The registry of these developers is in a SQL Server 2008 database table. I needed to create something (mayb...
asked by 26.07.2016 / 19:38
2
answers

Change Order by Clicking the Tab Key

I'm using bootstrap on a project in C #, and when I click the tab key to move the fields the direction is right to left, and I wanted it to be the other way around, where do I mute it? Ex: When he arrives at the save and cancel buttons he will f...
asked by 09.12.2015 / 13:58
2
answers

Razor in javascript file

I have a small code that works in _Layout : $.ajax({ type: "POST", url: "@Url.Action("Action", "Controller")", success: function () { //Seu código aqui ... } }); So far everything works fine, but _Layout is gett...
asked by 28.07.2017 / 21:51
2
answers

Create ReportViewer in Asp.Net MVC

How to create ReportViewer in Asp.Net Mvc 4 ? The Report is done, I just need to create the ReportViewer with the options to export pdf, excel and word. Example: <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Ve...
asked by 09.09.2015 / 19:40